I am trying to populate a database field with encrypted passwords for an
internal security system and then decrypt them later for login. The code I
am using to encrypt / decrypt is:
<cfif IsDefined("form.pw")>
<cfset encr_pw = #LCase(form.pw)#>
<cfset encr_pw = encrypt(encr_pw, "gala55")>
<cfset decr_pw = decrypt(encr_pw, "gala55")>
</cfif>
However, if I output these variables, I am not getting a constant return on
the "encr_pw" variable. Each time I refresh the page, I get a different
value for encr_pw (the last character of the string is always different).
Therefore, the correct password will not decrypt properly.
Any ideas?
============================================
Gary L. Alford
Materiel and Procurement
Senior BPE Specialist, SCM
Bell Helicopter Textron
Phone: (817) 280-6233
Fax: (817) 278-6233
mailto:[EMAIL PROTECTED]
============================================
-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org