Here is the model we use to store CC data, how safe does it look?
All our information is encrypted using public key encryption, and the key-key depends on the user (its generated on the server and the private key is symmetrically encrypted using the user's password, which is also placed in the database). Thus, at the first start, the user sends to his password via an SSL connection, and the password is used with the addition of salt to generate the MD5 hash, the password is also used to encrypt the private key, and the private key is stored on the server. When a user wants to make a payment, he sends his password. The password decrypts the private key, and the secret key decrypts the CC details and CC details. [/ P>
source
share