Decrypting an encrupted credit card number

Reply

Join Date: Sep 2008
Posts: 339
Reputation: freshfitz is an unknown quantity at this point 
Solved Threads: 27
freshfitz freshfitz is offline Offline
Posting Whiz

Re: Decrypting an encrupted credit card number

 
0
  #11
Dec 18th, 2008
Nope still stops inputing the value at "

Tried this
  1. <cfquery name="findOrder" datasource="#request.dsn#">
  2. INSERT INTO HL_OrderEstimates(credit_card_type,credit_card_number)
  3. Values (<cfqueryparam value="#form.selCreditCard#" cfsqltype="(Varchar)">,<cfqueryparam value="#form.numCredit#">)
  4. </cfquery>
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 339
Reputation: freshfitz is an unknown quantity at this point 
Solved Threads: 27
freshfitz freshfitz is offline Offline
Posting Whiz

Re: Decrypting an encrupted credit card number

 
0
  #12
Dec 18th, 2008
How reversable are they if you don't have the key?
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 20
Reputation: hhamdan is an unknown quantity at this point 
Solved Threads: 0
hhamdan hhamdan is offline Offline
Newbie Poster

Re: Decrypting an encrupted credit card number

 
0
  #13
Dec 18th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 339
Reputation: freshfitz is an unknown quantity at this point 
Solved Threads: 27
freshfitz freshfitz is offline Offline
Posting Whiz

Re: Decrypting an encrupted credit card number

 
0
  #14
Dec 18th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 45
Reputation: arrgh is an unknown quantity at this point 
Solved Threads: 6
arrgh arrgh is offline Offline
Light Poster

Re: Decrypting an encrupted credit card number

 
0
  #15
Dec 18th, 2008
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.
Last edited by arrgh; Dec 18th, 2008 at 9:28 pm.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 45
Reputation: arrgh is an unknown quantity at this point 
Solved Threads: 6
arrgh arrgh is offline Offline
Light Poster

Re: Decrypting an encrupted credit card number

 
0
  #16
Dec 18th, 2008
Originally Posted by freshfitz View Post
How reversable are they if you don't have the key?
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?
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 20
Reputation: hhamdan is an unknown quantity at this point 
Solved Threads: 0
hhamdan hhamdan is offline Offline
Newbie Poster

Re: Decrypting an encrupted credit card number

 
0
  #17
Dec 18th, 2008
Try this encryption method
http://tutorial113.easycfm.com/
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 339
Reputation: freshfitz is an unknown quantity at this point 
Solved Threads: 27
freshfitz freshfitz is offline Offline
Posting Whiz

Re: Decrypting an encrupted credit card number

 
0
  #18
Dec 18th, 2008
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?
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 45
Reputation: arrgh is an unknown quantity at this point 
Solved Threads: 6
arrgh arrgh is offline Offline
Light Poster

Re: Decrypting an encrupted credit card number

 
0
  #19
Dec 18th, 2008
Originally Posted by hhamdan View Post
Try this encryption method
http://tutorial113.easycfm.com/

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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 45
Reputation: arrgh is an unknown quantity at this point 
Solved Threads: 6
arrgh arrgh is offline Offline
Light Poster

Re: Decrypting an encrupted credit card number

 
0
  #20
Dec 18th, 2008
Originally Posted by freshfitz View Post
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the ColdFusion Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC