fixed aes encryption bug and added aes decryption