| | |
Decrypting an encrupted credit card number
Please support our ColdFusion advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Sep 2008
Posts: 339
Reputation:
Solved Threads: 27
Nope still stops inputing the value at "
Tried this
Tried this
ColdFusion Syntax (Toggle Plain Text)
<cfquery name="findOrder" datasource="#request.dsn#"> INSERT INTO HL_OrderEstimates(credit_card_type,credit_card_number) Values (<cfqueryparam value="#form.selCreditCard#" cfsqltype="(Varchar)">,<cfqueryparam value="#form.numCredit#">) </cfquery>
•
•
Join Date: Nov 2008
Posts: 20
Reputation:
Solved Threads: 0
what is the data type in the database for credit_card_type,credit_card_number, isn't varchar, and another thing take off the cfsqltype="(Varchar)" from the cfqueryparam.
and if you want to solve the problem just use the encryption method i send it to you.
i do have the link for the encryption example and i will send it to you tomorrow from work.
Thanks
and if you want to solve the problem just use the encryption method i send it to you.
i do have the link for the encryption example and i will send it to you tomorrow from work.
Thanks
•
•
Join Date: Sep 2008
Posts: 339
Reputation:
Solved Threads: 27
I did take out the cfsqltype anything I try I can't get it to store the encryption string. Database types i tried varchar nvarchar and ntext right now it's back to varchar
•
•
Join Date: Dec 2008
Posts: 45
Reputation:
Solved Threads: 6
You need to use the correct syntax. "cfsqltype="(Varchar)"> is not a valid cfsqltype. If you use an invalid type ColdFusion defaults to the type for "char" which may cause unexpected results. All cfsqltypes start with "cf_" like: cf_sql_varchar, cf_sql_integer, etc... You can look up the types in the online documentation.
http://www.google.com/url?sa=U&start...clqArulJB8sCkw
I tried it with MySQL and cfqueryparam and it worked perfectly. That also assumes the column is long enough to hold the inserted value.
http://www.google.com/url?sa=U&start...clqArulJB8sCkw
I tried it with MySQL and cfqueryparam and it worked perfectly. That also assumes the column is long enough to hold the inserted value.
Last edited by arrgh; Dec 18th, 2008 at 9:28 pm.
•
•
Join Date: Dec 2008
Posts: 45
Reputation:
Solved Threads: 6
Adobe's own documentation states that Encrypt uses the CFMX_COMPAT method by default and "This algorithm is the least secure option (default). " Not very secure in comparison to other, better, encryption algorithms. Would you use it if you thought you might be held liable for the consequences?
•
•
Join Date: Nov 2008
Posts: 20
Reputation:
Solved Threads: 0
Try this encryption method
http://tutorial113.easycfm.com/
http://tutorial113.easycfm.com/
•
•
Join Date: Sep 2008
Posts: 339
Reputation:
Solved Threads: 27
All the others you need to use generate secret key. How would that work how do I decrypt the credit card if I don't know what the key is?
•
•
Join Date: Dec 2008
Posts: 45
Reputation:
Solved Threads: 6
Now I know you are joking around .. because that still uses Encrypt - with the default CFMX_COMPAT. Hardly good enough security for credit card information.
•
•
Join Date: Dec 2008
Posts: 45
Reputation:
Solved Threads: 6
•
•
•
•
All the others you need to use generate secret key. How would that work how do I decrypt the credit card if I don't know what the key is?
It is not just encryption. Some credit card companies require merchants to meet certain requirements and also pass a certification process if they intend to store credit card info.
http://extranet.mivamerchant.com/for...ad.php?t=19217
![]() |
Other Threads in the ColdFusion Forum
- Previous Thread: Please Help
- Next Thread: Authenticate cfmail with exchange
| Thread Tools | Search this Thread |





