Leigh, I see what you mean, and your recommendation matches the syntax in
the Adobe documentation. But, I think I have accounted for both algorithm
and encoding in my statement below -- have I not?

<cfqueryparam cfsqltype="cf_sql_varchar"
value="#encrypt(form.CreditCardNumber,GenerateSecretKey("AES", 256),"UU")#">

form.CreditCardNumber   <-----string
GenerateSecretKey("AES", 256)    <------- key, plus algorithm (AES, 256-bit)
UU     <------- encoding

Does the GenerateSecretKey function account for both the key and the
algorithm?

I've been studying the documentation and looking for examples. What am I
missing? Thank you again, folks.

Eric

-----Original Message-----
From: Leigh [mailto:[email protected]] 
Sent: Thursday, November 08, 2012 2:47 PM
To: cf-talk
Subject: RE: encrypt / decrypt question


> Any idea what the "The UU algorithm is not supported" error is about?

You skipped the algorithm again ;-) The third argument is the encryption
algorithm ie "AES". Encoding (ie "UU") is the fourth argument.

          Encrypt(yourString, yourKey, theAlgorithm, theEncoding)

-



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353101
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to