Title: Message
 
 
Thanks Spike.
 
Unfortunately the following returns the same error:
 
   <cfset mykey = "foo">
   <cfset mystr = '1_0+^G]*XJORO?-[2< "H?&KS!$' & chr(10)>
   <cfset cleanstr = decrypt(mystr,mykey)>
 
I'm not convinced that some of the characters aren't upsetting it.
 
Note, the code I am working on works fine on another CF5 server ...
 
 
 
 -----Original Message-----
From: Spike [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 19 August 2003 2:34 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: decrypt

I should probably have pointed out that line feed is chr(10), so you could try this:

<!--- Replace this value with your encryption key--->
<cfset mykey = "foo">
<cfset mystr = 1'_0+^G]*XJORO?-[2< "H?&KS!$' & chr(10)>
<cfset cleanstr = decrypt(mystr,mykey)>

Spike

Spike wrote:
Since CF 4.5 all valid strings created with the encrypt() function are terminated with a line feed.

Make sure you have a line feed on the end of that string.

Spike

Sarah Atkinson wrote:
 
Hi All,
 
What is the criteria for a string to be valid in order for it to be decrypted?
 
When attempting to decrypt the following string 1_0+^G]*XJORO?-[2< "H?&KS!$ I receive:
 
"The value to be decrypted is not valid"
 
I have never experienced any issues with characters when decrypting ... anyone with any insight?
 
Using CF5.
 
Thanks,
Sarah.
 

Sarah Atkinson
Global Applications Team Leader

Lonely Planet Publications, Aust.
Telephone: +61 3 8379 8000

[EMAIL PROTECTED]

 
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/
______________________________________________________________________
This email, including attachments, is intended only for the addressee
and may be confidential, privileged and subject to copyright.  If you
have received this email in error, please advise the sender and delete
it.  If you are not the intended recipient of this email, you must not
use, copy or disclose its content to anyone.  You must not copy or 
communicate to others content that is confidential or subject to 
copyright, unless you have the consent of the content owner.
        

-- 
Stephen Milligan
Consultant for hire
http://www.spike.org.uk
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

-- 
Stephen Milligan
Consultant for hire
http://www.spike.org.uk
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to