Data Encryption

后端 未结 8 2076
挽巷
挽巷 2021-02-14 10:05

A database that stores a lot of credit card information is an inevitable part of the system we have just completed. What I want though is ultimate security of the card numbers w

相关标签:
8条回答
  • 2021-02-14 10:28

    Unless you are a payment processor you don't really need to store any kind of CC information.

    Review your requirements, there really is not many cases where you need to store CC information

    0 讨论(0)
  • 2021-02-14 10:28

    I'd symmetrically encrypt (AES) a secure salted hash (SHA-256 + salt). The salted hash would be enough with a big salt, but the encryption adds a bit extra in case the database and not the code leaks and there are rainbow tables for salted hashes by then or some other means. Store the key in the code, not in the database, of course.

    It's worth noting that nothing protects you from crooked teammates, they can also store a copy of the date before hashing, for instance. You have to take good care of the code repository and do frequent code revisions for all code in the credit card handling path. Also try to minimize the time from receiving the data and having it crypted/hashed, manually ensuring the variable where it was stored is cleared from memory.

    0 讨论(0)
提交回复
热议问题