use cfusion_encrypt/cfusion_decrypt. They'll always result in a hex string, rather than the random jiberish that encrypt/decrypt use. Also, cfusion_encrypt's result is ALWAYS exactly twice as long as the original value, rather than the undetermined length from encrypt.
--- Barney Boisvert, Senior Development Engineer AudienceCentral (formerly PIER System, Inc.) [EMAIL PROTECTED] voice : 360.756.8080 x12 fax : 360.647.5351 www.audiencecentral.com > -----Original Message----- > From: Greg Luce [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 27, 2003 1:02 PM > To: CF-Talk > Subject: Encrypt/Decrypt > > > I encrypted a value to store in the db using the CF encrypt() function. > It worked a few times, but then it encrypted a value with a double quote > as one of the encrypted chars. Now when I try to decrypt() the value I > get an error that the value to be decrypted is not valid. > > <cfset y = decrypt(get_stuff.value,"#request.rag#")> > > I tried htmlcodeformat() because it escapes double quotes. But it still > errors: > > <cfset y = decrypt(htmlcodeformat(get_client.ccnumber),"#request.rag#")> > > Ideas? > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4