Using WP salts for custom encryption
-
Say I want to create my own implementation for encrypting sensitive keys I store in the DB (like API tokens, etc.) using something like openssl_encrypt for instance, how smart is it to use something like
SECURE_AUTH_KEY
for the passphrase?Seeing how WP salts can be rotated, that would mean that once they are rotated, the encrypted value in the database wouldn’t be able to be decrypted back (as the passphrase is different), and any implementation of the decryption would fail.
Besides setting up a custom key manually in the
wp-config.php
, which is not really doable from a plugins perspective, what would be the best way of setting up the encryption?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Using WP salts for custom encryption’ is closed to new replies.