* @return byte[] The encrypted data
* @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;
}