1) a person enters their email in a field - it is put into temail and then encrypted
The code is
When I do answer myText, it displays 2 lines of encrypted text
encrypt temail using "aes192" with key "zSJmf1pHKa42+mdZfGEM+A=="
put it into myText
answer myText
2) If I then decrypt it to see if it will give me my email address back. It does. Everything is good.
3) Then, I store the encrypted text as follows:
When open or read the file, it has 3 lines of encrypted text and fails the decryption:open file specialFolderPath("documents") & "/adminemail.txt" for write
write myText to file specialFolderPath("documents") & "/adminemail.txt"
close file specialFolderPath("documents") & "/adminemail.txt"
This makes encryption/decryption completely worthless. Is there something I am doing wrong? Thanks
put url ("binfile:" & specialFolderPath("documents") & "/adminemail.txt") into twhat
answer twhat
decrypt twhat using "aes192" with key "zSJmf1pHKa42+mdZfGEM+A=="
put it into gemail
answer gemail