Fix encrypt algorithm

-Resolve encrypt problem with AES algorithm