Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6358035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:17:24+00:00 2026-05-24T23:17:24+00:00

Yeah… just thinking about it… Should I store credit card numbers that have been

  • 0

Yeah… just thinking about it…

Should I store credit card numbers that have been input on my site as strings or ints?

I mean, they’re made up of numbers which makes me think it’s an int… but I don’t do maths on them, so maybe a string is more appropriate?

EDIT: So I have to store the number that’s been input at some point, before I encrypt it. I probably should have been more specific – it’s not like I’m saving them in the DB in clear text or anything – glad to see how conscientious everyone is 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T23:17:25+00:00Added an answer on May 24, 2026 at 11:17 pm

    Neither. You should save them, at very least, as byte arrays encrypted with AES or equivalent using industry-accepted key storage.

    Windows provides a lot of this via the Data Protection API: http://msdn.microsoft.com/en-us/library/ms995355.aspx

    For your own sake and the sake of your customers, please learn the proper standards for encrypting financial credentials or hire someone who knows them.

    Given your edit:

    C# has a SecureString class that you should use. I don’t believe that there is a Java equivalent, but I could be wrong.

    EDIT: For posterity’s sake…

    Guidelines for storage, transmission, and processing of credit card details are defined by PCI DSS (Data Security Standards). Anyone considering how to architect their solution for managing credit card data should read about that here, and consult an industry expert: https://www.pcisecuritystandards.org/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very large list Suppose I do that (yeah, I know the
Hello yeah I'm asking this question a second time, sorry about that but I
Yeah, sorry about asking a stupid n00b question. So I have a C# program.
Yeah, so I have NO CLUE what happened. I've been writing an AJAX comment
Yeah, this ought to be fun. I'm working on a site that was built
Yeah, sounds silly but I'm a designers and the site I'm working on is
;) Yeah. I also have C++ in my solution. How do I add a
Yeah so I've been messing around with javascript a while but only recently got
Yeah I know that SQL Server has got free express editions(2005/2008) But what i
yeah! i have written the code inside viewDidLoad method but work properly!!! my prolblem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.