I came here to ask about mcrypt. I need to store credit card information in a database, and I want to do this the right way. I'll list my questions in an orderly fashion 🙂
Is the key generated randomly for each purchase on the store? Or is it a hardcoded var somewhere in a php file? ($key = 'blahblahblah123123')
Is the IV generated randomly for each purchase on the store? Or is it a hardcoded var?
Key and IV: which can I store in the DB along with the encrypted CC info?
Basically I'm confused about the relationship between the key, IV, and the text to encrypt. And if the key is static or dynamically changing, or if the IV is .. etc.
Thanks in advance.