Encrypting:
<cfif IsDefined("form.fm_test") AND #fm_test# NEQ "">
<cfset var.fm_test="#trim(FORM.fm_test)#">
<cfset encrpt_fm_test=encrypt("#var.fm_test#","#encryptVAR#")>
</cfif>
Decrypting:
<cfif IsDefined("query.fm_test") AND #query.fm_test# NEQ "">
<cfset decrypt_fm_test=decrypt("#query.fm_test#","#encryptVAR#")>
</cfif>
In about 50% test cases, decrypt_fm_test comes back partially scrambled.
Here's a couple of test in a row. #encryptVAR# is constant for all test.
Entered Returned
23230 2323?
23200 2320?
12345 12345
567890 567890
23230 2323?
232323230 23232323&
It's repeatable. Zero's? It's driving me CRAZY and i really need a fix!!!!
Ideas?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2.
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277555
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4