Could you post the entire encrypt/decrypt code snip?

-----Original Message-----
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 27, 2007 11:45 AM
To: CF-Talk
Subject: encrypt/decrypt bug

This is driving me crazy!!

For this code:

<cfif IsDefined("form.myVAR") AND #form.myVAR# NEQ "">
   <cfset encrpt_myVAR=encrypt("#trim(FORM.myVAR)#","#encCODE#")>
</cfif>

Figure this out. Here's a few test:
-----------------------------------------------
Form Entry: 2222        Decrypted output: 2222
Form Entry: 22222       Decrypted output: 2222=
form Entry: 222222      Decrypted output: 222222
form entry: 33333332    Decrypted output: 3333333=
form entry: abcdef2     Decrypted output: abcdef2
form entry: abcdef32    Decrypted output abcdef3=
form entry: abcdef33    Decrypted output abcdef33


I can pretty much put anything I want into the form field and it 
encrypts correctly - UNLESS it ends in a "2". Then it's screwed - 
sometimes. I can't tell if the problem is on the encrypt or decrypt side 
either.

During these test, the var "encCODE" was kept constant. I haven't tried 
yet, but wonder if changing it would make a difference. Will try that next.

Something I'll get a ">" some instead of the equal sign. It's ONLY a "2" 
that does this. WTF?

Any ideas at all? Is there a patch from the version below to fix this? 
It's driving myself and a client insane right now!!!


Level: Enterprise
Name: ColdFusion Server
Version 7,0,2,142559



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276409
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