encryption (of credit cards)

J

Joe Van Dyk

http://monkeycharger.googlecode.com/svn/trunk/app/models/credit_card.rb

Ignore the fact that it's a ActiveRecord model and tell me if the
encryption that I'm using for encrypting the credit card numbers is
reasonable. Did I screw anything up?

What would you change? I imagine I could generalize out the
encryption bits, right?

One alternative I came up with is to use some combination of a unique
user id, the credit card's cvv, and a secret key on the server for
encrypting the credit card number. So, whenever you wanted to
authorize a card, you had to provide the unique user id and the CVV
for the card. I figure that would make a bit safer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top