943,546 Members | Top Members by Rank

Ad:
  • ColdFusion Discussion Thread
  • Unsolved
  • Views: 4703
  • ColdFusion RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Dec 18th, 2008
0

Re: Decrypting an encrupted credit card number

Nope still stops inputing the value at "

Tried this
ColdFusion Syntax (Toggle Plain Text)
  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>
Reputation Points: 12
Solved Threads: 36
Posting Pro in Training
freshfitz is offline Offline
436 posts
since Sep 2008
Dec 18th, 2008
0

Re: Decrypting an encrupted credit card number

How reversable are they if you don't have the key?
Reputation Points: 12
Solved Threads: 36
Posting Pro in Training
freshfitz is offline Offline
436 posts
since Sep 2008
Dec 18th, 2008
0

Re: Decrypting an encrupted credit card number

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
hhamdan is offline Offline
21 posts
since Nov 2008
Dec 18th, 2008
0

Re: Decrypting an encrupted credit card number

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
Reputation Points: 12
Solved Threads: 36
Posting Pro in Training
freshfitz is offline Offline
436 posts
since Sep 2008
Dec 18th, 2008
0

Re: Decrypting an encrupted credit card number

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.
Reputation Points: 32
Solved Threads: 44
Posting Whiz
arrgh is offline Offline
348 posts
since Dec 2008
Dec 18th, 2008
0

Re: Decrypting an encrupted credit card number

Click to Expand / Collapse  Quote originally posted by freshfitz ...
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?
Reputation Points: 32
Solved Threads: 44
Posting Whiz
arrgh is offline Offline
348 posts
since Dec 2008
Dec 18th, 2008
0

Re: Decrypting an encrupted credit card number

Try this encryption method
http://tutorial113.easycfm.com/
Reputation Points: 10
Solved Threads: 0
Newbie Poster
hhamdan is offline Offline
21 posts
since Nov 2008
Dec 18th, 2008
0

Re: Decrypting an encrupted credit card number

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?
Reputation Points: 12
Solved Threads: 36
Posting Pro in Training
freshfitz is offline Offline
436 posts
since Sep 2008
Dec 18th, 2008
0

Re: Decrypting an encrupted credit card number

Click to Expand / Collapse  Quote originally posted by hhamdan ...
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.
Reputation Points: 32
Solved Threads: 44
Posting Whiz
arrgh is offline Offline
348 posts
since Dec 2008
Dec 18th, 2008
0

Re: Decrypting an encrupted credit card number

Click to Expand / Collapse  Quote originally posted by freshfitz ...
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
Reputation Points: 32
Solved Threads: 44
Posting Whiz
arrgh is offline Offline
348 posts
since Dec 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ColdFusion Forum Timeline: Please Help
Next Thread in ColdFusion Forum Timeline: Authenticate cfmail with exchange





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC