Hence the need for a way to change the hash and convert the currently stored credit card details to the new hash.
I am working on making our WHMCS installation PCI-DSS compliant and I have this problem:
Most of my company have the CC hash stored on their computers. If any of these staff members go rogue and keep the cc hash when they leave the company, they can decrypt all the CC details if they ever get access to the system.
I want to update the db with a new hash, which will not be passed around, and only accessible to people with direct access to the box. Thus ensuring that only staff I trust can decrypt CC details, AND I can roll out new hashes whenever I need to (i.e. when staff members leave) as an extra security precaution.
Sound obsessive? Yes, it might be.
But after reading the PCI-DSS compliance documents, it's a requirement for us.
I actually have a plan to write a script which will do this for me. It's not going to be pretty, but it is possible - I've decrypted the CC details before.