I'm implementing a shopping cart solution on a client site which has the ability to periodically push a datafeed containing RC4 encrypted XML to a page of my choosing.
I thought it would be a simple thing to encrypt test XML so that I could write the code to DEcrypt the same. Problem is that when I try to encrypt the string, 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".. Here's the code I'm using. The XML string is about 100 lines lonig, but I've also tried with one that was about 65 lines long with the same result.: <cfsavecontent variable="VARIABLES.xmlData"> <cfinclude template="data.xml"> </cfsavecontent> <cfset VARIABLES.key = "this is a test key"> <cfset VARIABLES.encrypted = Encrypt(VARIABLES.xmlData, VARIABLES.key, 'RC4')> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:298670 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4