The result of encrypt(myText, key, "BLOWFISH", "HEX") gives you a value that 
you can decrypt just fine in coldfusion, but not the same value as you would 
get if you ran the same encryption (blowfish, hex) using PHP.  Basically I need 
to encrypt some text in coldfusion and send it over to an API that expects the 
value that PHP's blowfish encryption generates.  

I've tried padding the myText variable with null characters to fill it so the 
length is a multiple of 8 (have to use URLDecode("%00") instead of char(0) as 
the null character, since char(0) doesn't actually increase the length of the 
string).  But that doesn't seem to have much of any effect.

Essentially I'm trying to make the result of
encrypt(myText, key, "BLOWFISH", "HEX")
match what you get using this tool:
http://webnet77.com/cgi-bin/helpers/blowfish.pl
this tool seems to output the result that would be generated by php and what 
the API expects.

If someone can make the result of coldfusion's blowfish encryption match what 
you get using that tool above I would really appreciate it.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:326520
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