Encrypt Database Fields
Encrypt post (ACF) and user fields in WordPress
by Joseph D'Souza · github.com/josephdsouza86/encrypt-database-fields · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/josephdsouza86/encrypt-database-fields/archive/refs/heads/master.zipReadme
Encrypt Database Fields
Adds an option to encrypt ACF text field and usermeta fields values in the database. Useful for storing sensitive data, such private personel information.
Requirements
- PHP 7+ with OpenSSL enabled
- Advanced Custom Fields plugin (If encrypting ACF fields)
Installation
Download and unzip the plugin direcrtory inside of the plugins folder and activate plugin
Define the ENCRYPT_DB_FIELDS_SECRET_KEY constant inside of wp-config.php
/** ACF Encrypt Field Option Key */
define('ENCRYPT_DB_FIELDS_SECRET_KEY', 'your key here');
For usermeta field encryption declare the meta keys you want to be encrypted as follows
define('ENCRYPT_DB_FIELDS_META_KEYS', [
'sensitive_data',
'private_notes',
'confidential_info',
]);
Screen Shots
ACF Field Options

Read the full README on GitHub →
Releases
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.