> It seems you are getting the string to decrypt from a DB - are you
> originally inserting the encrypted string into the DB with
> cfqueryparam?
I'm validating the submitted form data before encrypting, and then just
doing a straight insert without cfqueryparam, which I was pretty sure
would reject the insert because of content.
Getting ready to try something else - will report back after I see what
happens...
>> <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>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277608
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4