WP Manifestindependent plugin directory
manifest / security / wordpress-encrypter-plugin

BoxyBird Encrypter

A set of encryption/decryption functions based on Laravel Encryption class.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/boxybird/wordpress-encrypter-plugin/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Encrypter WordPress Plugin

A set of encryption/decryption functions based on Laravel Encryption class. https://github.com/illuminate/encryption


Set Encryption Key

// wp-config.php
define( 'BB_ENCRYPT_KEY', 'SOME_RANDOM_16_CHARACTER_STRING' );

Examples

$value = 'some_secret_value';

$encrypt = bb_encrypt($value);
// eyJpdiI6ImZ5QWtsRW83WmJJSVdmWmozcFF6WWc9P...

$decrypt = bb_decrypt($encrypt)
// 'some_secret_value'
$query = new WP_Query([
    'post_type'      => 'post',
    'posts_per_page' => 5
]);

$encrypt = bb_encrypt($query->posts);
// eyJpdiI6Im9sZ2pBb1FGNFR5Q3hHNDFqZFZ0cnc9P...

$decrypt = bb_decrypt($encrypt)
// an array of posts

License

MIT license