Hi all,
I am trying to use encrypt and decrypt to save values such as Credit Card numbers to my database. Here is my problem:
For a credit card, for example, I have an Oracle database table with a field of varchar2 and want to store this encrypted data. Here is my insert statement (the encrypt key is stored in my Application.cfm file):
<cfquery>
insert into table(field_name)
values('#encrypt(cc_number, key_name)#')
</cfquery>
The problem is that in some cases, the encrypted code will include a single apostrophe and will not allow my sql insert to be carried out. Can anyone help?
Thanks in advance!
Jami
I am trying to use encrypt and decrypt to save values such as Credit Card numbers to my database. Here is my problem:
For a credit card, for example, I have an Oracle database table with a field of varchar2 and want to store this encrypted data. Here is my insert statement (the encrypt key is stored in my Application.cfm file):
<cfquery>
insert into table(field_name)
values('#encrypt(cc_number, key_name)#')
</cfquery>
The problem is that in some cases, the encrypted code will include a single apostrophe and will not allow my sql insert to be carried out. Can anyone help?
Thanks in advance!
Jami