Copy link to clipboard
Copied
Hi,
Whats the best way to achive asymetric encrytion with CF? I need to encrypt a CreditCard number on one server and stored the encrypted string in a db and then 5 minutes later another server takes the card number off that DB and then needs to decrypt it. Any suggestions gratefully received
Thanks
Paul
Copy link to clipboard
Copied
You can use the built in Encryp() function with AES and a shared key in a pinch. Just watch your encoding as in goes in/comes out of the DB. For real security, I would recommend picking up a command line PGP program (if you're on windows servers) and performing your encryption/decryption that way. You'll need to have access to <cfexecute> on your CF server.