Keys for these algorithms are created via the GenerateSecretKey() function.
On Feb 10, 2008 12:22 PM, Andy Matthews <[EMAIL PROTECTED]> wrote: > 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? -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:298655 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

