> We need to Encrypt and email private info. Then using the same key decrypt
> on the receiving end. However, our Decrypt tag throws and error, not liking
> some of the Encrypted code. The example below works under the same
> circumstances. Encrypting in one template and decrypting in another
> template (by <CFOUTPUT), copying, and reentering in a form, also throws and
> error. The thing I can think of is there is something that is different in
> the encrypted code than appears to be visible and copy/pasted??
This can happen with multibyte encodings. Try putting a
ToBase64() in between:
<cfset encrypted = encrypt(ToBase64(string), key)>
<cfset decrypted = ToString(ToBinary(decrypt(encrypted, key)))>
Jochem
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

