Fix security hole in AES encryption.
Add a public part for encrpytion/decryption.