Question
Encrypt and Decrypt
Hoping someone can help, I have a site that excepts credit
cards. The site takes a credit card submitted through a form. I
have coldfusion then encrypt it as follows
enc_key is set in the application.cfm file.
<cfset number = Encrypt(card_number, enc_key)>
This is stored in the DB.
I then have an admin area that will allow me to view orders and their creditcard so that I can process them at the store level. I use the following to display the card.
#Decrypt(blCard_Number, enc_key)#
What happens is weird, only the first half of the credit card gets decrypted. Does anyone have any ideas.
enc_key is set in the application.cfm file.
<cfset number = Encrypt(card_number, enc_key)>
This is stored in the DB.
I then have an admin area that will allow me to view orders and their creditcard so that I can process them at the store level. I use the following to display the card.
#Decrypt(blCard_Number, enc_key)#
What happens is weird, only the first half of the credit card gets decrypted. Does anyone have any ideas.
