implemented the AES encryption