Added support for AES encryption.