OR...I found a useful, hidden function in the guts of the cfadmin itself.
The encrypt function returns JUST an alphanumeric string, instead of with
punctuation and other chars.

<cfset string = "coldfusion rules">
<cfset seed = "four score and seven years ago">
<cfset encrypt = CFusion_Encrypt(string,seed)>
<cfset decrypt = CFusion_Decrypt(encrypt,seed)>

<cfoutput>
encrypt: #encrypt#<br>
decrypt: #decrypt#<br>
</cfoutput>

<!----------------//------
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Matt Robertson [mailto:[EMAIL PROTECTED]
Sent: Monday, September 26, 2005 12:30 PM
To: CF-Talk
Subject: Re: Weird Encrypt/Decrypt problem!


The pre CF7 encrypt() function does not create dbsafe strings. You have to
toake it a further step for that: Wrap the string in toBase64() before you
store the data. IIRC (its been awhile) you use tostring() when decrypting.
 I think the new algorithm options in cfencrypt()/cfdecrypt() could be
enough features to upgrade right then and there.

--
--mattRobertson--
Janitor, MSB Web Systems
mysecretbase.com <http://mysecretbase.com>




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219273
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to