khorshid / wp-encrypt
Encrypts and decrypts data using the WordPress SALT and OpenSSL
v1.0.1
2022-07-04 18:51 UTC
Requires
- php: >=5.6
This package is auto-updated.
Last update: 2024-11-04 23:52:47 UTC
README
Encrypts and decrypts data using the WordPress Salts and OpenSSL
Installation
Use the package manager composer to install WP-Encrypt.
composer require khorshid/wp-encrypt
Usage
use WP_Encryption\Encryption; ... $encrypted_data = (new Encryption)->encrypt( $data ); // $encrypted_data is encrypted and safe to store in database. $decrypted_data = (new Encryption)->decrypt( $encrypted_data ); // $encrypted_data = $data
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.