complete example of AES encryption