PHP code example of wpelevator / encrypted-secrets
1. Go to this page and download the library: Download wpelevator/encrypted-secrets 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/ */
wpelevator / encrypted-secrets example snippets
$secret_storage = new WPElevator\Encrypted_Secrets\Encryption_Key_Storage_Memory( 'MY_SECRET_CONSTANT' );
$secret_key = $secret_storage->get();
if ( $secret_key ) {
// Do something.
}