reverting AES encryption code