Start by not using encrypt and decrypt.  Instead use cfusion_encrypt() and
cfusion_decrypt().  Much better functions.  The results are pure
alphanumeric.  

Weird that this shouldn't work though.  What error is CF 5 throwing?  Or is
it decrypting incorrectly?  Is the encrypted value the same on both CF 5 and
MX?

Tim


-----Original Message-----
From: McNamara Kyle W CONT PORT [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 12:18 PM
To: CF-Talk
Subject: decrypt() not working on CF5


Help! this thing (see code below) works fine on MX but not on CF5... the
only way to get it towork in CF5 is to encrypt and decrypt in the same
request.

Can anyone suggest a workaround? we need this to work for our transition to
MX.

Thank you!

Kyle

<cfset string = "kyle"> <!--- this is what was made into the string of the
"encrypted" variable below --->
<cfset key = "mouse">

<!--- this works on CFMX but does not work on CF5 --->
<cfset encrypted = "$4$H?5@">
<cfset decrypted = decrypt(encrypted, key)>
<cfoutput>
    <h4><B>The string:</B></h4> #string# <br>
    <h4><B>The key:</B></h4> #key#<br>
    <h4><B>Encrypted:</B></h4> #encrypted#<br>
    <h4><B>Decrypted:</B></h4> #decrypted#<br>
</cfoutput>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com

Reply via email to