ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 9th, 2012, 10:46 AM
dsfx dsfx is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2009
Posts: 65 dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 18 h 38 m 2 sec
Reputation Power: 15
Where and how to store my Secure Key?

What is the best practice when dealing with Secure Keys? My problem right now is my boss wants us to store credit card numbers for processing.

I've set up a SSL site, generated my secret key and am storing everything encrypted(AES) in a database. My problem is how do i protect this secret key???? i can't just leave it sitting in plane text in the .cfm file!

Thanks
DSFX.

Reply With Quote
  #2  
Old June 10th, 2012, 12:55 PM
kiteless kiteless is offline
Moderator
Dev Shed God (5000 - 5499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 5,091 kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 2 h 53 m 27 sec
Reputation Power: 966
Unless you are absolutely sure you can meet the PCI compliance standards, do not store credit card numbers. Which basically means: do not store credit card numbers.

The compliance rules are very strict are are difficult to meet without an entire team of people dedicated to ensuring compliance. Amazon has these resources. You probably do not.

There's really few reasons to store card numbers anyway. You don't need to store them to make charges or credits. Save yourself a lot of pain and potential lawsuits and just don't do this.

Reply With Quote
  #3  
Old June 10th, 2012, 01:02 PM
kiteless kiteless is offline
Moderator
Dev Shed God (5000 - 5499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 5,091 kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 2 h 53 m 27 sec
Reputation Power: 966
But to answer your question: yes, you have to store the key somewhere in your code, otherwise there's no way the application can encrypt or decrypt anything. Which means part of the problem is making sure that there is no way for someone to hack the site and get at the source code where the key is stored.

Reply With Quote
  #4  
Old June 11th, 2012, 01:39 PM
dsfx dsfx is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2009
Posts: 65 dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 18 h 38 m 2 sec
Reputation Power: 15
Quote:
Originally Posted by kiteless
Unless you are absolutely sure you can meet the PCI compliance standards, do not store credit card numbers. Which basically means: do not store credit card numbers.

The compliance rules are very strict are are difficult to meet without an entire team of people dedicated to ensuring compliance. Amazon has these resources. You probably do not.

There's really few reasons to store card numbers anyway. You don't need to store them to make charges or credits. Save yourself a lot of pain and potential lawsuits and just don't do this.


You have no idea how happy i am to hear this! Thanks.

Reply With Quote
  #5  
Old June 14th, 2012, 05:54 PM
dsfx dsfx is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2009
Posts: 65 dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level)dsfx User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 18 h 38 m 2 sec
Reputation Power: 15
Quote:
Originally Posted by dsfx
You have no idea how happy i am to hear this! Thanks.


On the off chance that this may help somebody there are several services that will help you collect payment and will meeting PCI compliance.

Ben Nadel talks about stripe.com's service in this blog post. I found it very helpful and insightful.

http://www.bennadel.com/blog/2286-A...-ColdFusion.htm

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Where and how to store my Secure Key?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap