113114115116117118119120121122123
* @throws HttpException If {@link Cipher.doFinal(byte[])} fails */ private byte[] encrypt(byte[] key, byte[] bytes) throws IOException { DESEngine cipher = getCipher(key); byte[] enc = cipher.doFinal(bytes); return enc; } /**