Following example here:
http://www.petefreitag.com/item/222.cfm

Application.cfm:

<cfif not isdefined("request.encrypt.secretkey")>
     <cfparam name="request.encrypt.secretkey" default="key">     
</cfif>

<cfif not isdefined("request.encrypt.algorithm")>
     <cfparam name="request.encrypt.algorithm" default="DESEDE">     
</cfif>

<cfif not isdefined("request.encrypt.encoding")>
     <cfparam name="request.encrypt.encoding" default="hex">     
</cfif>

test page:
<cfoutput>
<cfset enc = Encrypt("test", request.encrypt.secretkey, 
request.encrypt.algorithm, request.encrypt.encoding)>
#enc#
</cfoutput>

Getting:
An error occurred while trying to encrypt or decrypt your input string: '' Can 
not decode string "key".. 

This shows my syntax is correct, so I'm stumped:
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_e-g_01.html
 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330798
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to