Fixed it...

> Has anyone had a problem with decrypt function in CFMX?
> 
> The crypt key is the same (it's a variable) and I can encrypt 
> no problem BUT decryption throws an error:
> 
> "An error occurred while evaluating the expression: 
> 
> #decrypt(form.password_enc, request.application.crypt_key)#
> 
> Error near line 17, column 3.
> --------------------------------------------------------------
> --------------
> ----
> 
> The value to be decrypted is not valid"
> 

The encrypted value had a double quote in it, which breaks the form variable
it was a part of.

URLEncoding the data allows it to be passed.

Thought it was a bit strange!

Paul




--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to