Odd.

You can get one or two =s used by the CF encryption for padding encoded values 
to a certain length, so that might explain the character itself, but not really 
/why/ it's happening.

What is in Request.encCode?

Is it definitely constant between encrypt and decrypt?


( The solution is of course to use a proper algorithm, like AES/BLOWFISH/etc, 
but why the problem is happening is clearly a curiousity. :) )



>Here's a head scratcher:
>
>Doing this on a form to encrypt a 5 digit security code:
>
><cfset request.encrptVAR=encrypt("#FORM.myVAR#","#request.encCODE#")>
>
>I can enter any five numbers "12345" I want, and it works perfect when 
>decoded
>
>**EXCEPT** - if the number ends in a "2" like "99992", the "2" gets 
>replaced with an equal sign "=" on decode-  "9999=" instead of "99992"
>
>What the heck?
>
>
>
>ColdFusion Server Version 7,0,2,142559

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274241
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to