khorshid / wp-encrypt
Encrypts and decrypts data using the WordPress SALT and OpenSSL
Installs: 219
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 0
Open Issues: 0
pkg:composer/khorshid/wp-encrypt
Requires
- php: >=5.6
This package is auto-updated.
Last update: 2025-10-05 01:51:34 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.