<cfset ccnumber = "#trim(decrypt(trim(encryptCC), key))#"> I had trim in the decrypt string.. disregard...
-----Original Message----- From: Jacob [mailto:[EMAIL PROTECTED] Sent: Thursday, July 19, 2007 12:49 PM To: CF-Talk Subject: Problems with encrypt and decrypt I am playing around with encrypt and decrypt in CF and I ran into a issue. First, here is the code: <cfoutput> <cfset key = "XXXXX44po"> <cfset tt = "4000000000000003"> <cfset encryptCC = '#trim(encrypt(trim(tt), key))#'> <P>#tt#</P> <P>#encryptCC# </P> <cfset ccnumber = "#trim(decrypt(trim(encryptCC), key))#"> <P>#ccnumber# </P> </cfoutput> When I run this, the decrypt is 4000000000000002. If I change the number to be encrypted, sometimes it decrypts correctly and sometimes it does not. The same is true if I change the key. Any ideas? Thanks Jacob ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284151 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

