I'm implementing a shopping cart called FoxyCart. They manage all of the 
processing and secure transactions, and once the order is complete on their end 
they offer, among other things, a secure data feed containing XML for the order 
encrypted via RC4. I looked up the encrypt/decrypt functionality and it looks 
pretty straightforward except that I'm getting errors.

I'm trying first encrypt a sample string of XML so that I work on this locally. 

<cfsavecontent variable="VARIABLES.xmlData">
        <cfinclude template="data.xml">
</cfsavecontent>

<cfset VARIABLES.key = "this is a test key">

<cfdump var="#Encrypt(VARIABLES.xmlData, VARIABLES.key, 'RC4')#">

However, when I try to encrypt the XML I get the following error:
An error occurred while trying to encrypt or decrypt your input string: '' Can 
not decode string "this is a test key".. 

When I remove the RC4 indicator the error goes away, but I'm obviously going to 
need that there. Does anyone have any idea why this isn't working? 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298654
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to