Andrew,
In case you ever want to encrypt something using Password Based
Encryption in ColdFusion, I've included the code below which encrypts
the password and encodes it as base64. It's pretty straight forward in
CF. The problem was not CF implementation; it was my understanding of
PBE, salts, iterations and Byte arrays. With greater understanding, the
solution was very simple.
A big thanks to Tom Donovan who sent me the information on how to create
the byte array in ColdFusion!
<cfscript>
theEncrytString = "nations1";
thePassword = "C1F9J9V5";
theMethod = "PBEWithMD5AndDES";
theEncoding = "Base64";
theSalt = BinaryDecode("c773218c7ec8ee99","Hex");
theIterations = 20;
test = Encrypt(theEncrytString, thePassword, theMethod,
theEncoding, theSalt, theIterations);
</cfscript>
Christine Davis
ColdFusion Lead
Nations Technical Services
Prairie Village, KS
913-748-8044 ext 4703
[EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277317
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4