Hi. A while ago, some kind folks on here helped me with encryption for a
credit card number:
[code]
!--- encryption routine ---
!--- if a value is entered in form.CreditCardNumber, then do the following
---
cfif len(form.CreditCardNumber)
!--- set default value for result in case no value is
cfif len(editUser.CreditCardNumber)
cfparam name=form.decrypted default=
cfset theKey = GenerateSecretKey(AES, 256)
cfset decrypted = decrypt(form.CreditCardNumber, theKey, AES, UU)
/cfif
Since the only place where the decrypted variable is being set is
within the CFIF block, I'd check to
you again
for your time.
Eric
-Original Message-
From: Justin Scott [mailto:leviat...@darktech.org]
Sent: Monday, February 18, 2013 6:46 PM
To: cf-talk
Subject: Re: decryption question
cfif len(editUser.CreditCardNumber)
cfparam name=form.decrypted default= cfset theKey
Hmm. I am still getting error Variable DECRYPTED is undefined. which is
weird since I have defined it -- in scope FORM.
Hi Eric, I'd recommend throwing the whole file up to somewhere like
pastebin and posting a URL so we can see what all is going on in there
(make sure to remove any sensitive
. This information will be submitted over an SSL / HTTPS connection.
-Original Message-
From: Justin Scott [mailto:leviat...@darktech.org]
Sent: Monday, February 18, 2013 9:32 PM
To: cf-talk
Subject: Re: decryption question
Hmm. I am still getting error Variable DECRYPTED is undefined. which
http://pastebin.com/3xtt3b8k
At first glance I'm not sure why it wouldn't find the form variable.
You might try explicitly setting the scope in all instances of that
variable. Also, why are you paraming it in the form scope? Your form
doesn't have a variable called decrypted so it will always
on this
and get back to you. Thank you again for your help.
Eric
-Original Message-
From: Justin Scott [mailto:leviat...@darktech.org]
Sent: Monday, February 18, 2013 10:32 PM
To: cf-talk
Subject: Re: decryption question
http://pastebin.com/3xtt3b8k
At first glance I'm not sure why
7 matches
Mail list logo