Skip to content

KhorshidLab/WP-Encrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WP-Encrypt

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.

License

GPL3