Updated sample to use AESEncryptor