encryption decryption now works