PHP code example of khorshid / wp-encrypt
1. Go to this page and download the library: Download khorshid/wp-encrypt library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
khorshid / wp-encrypt example snippets
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