PHP code example of jsq / psr6-encrypting-decorator
1. Go to this page and download the library: Download jsq/psr6-encrypting-decorator 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/ */
jsq / psr6-encrypting-decorator example snippets
$encryptedCache = new \Jsq\CacheEncryption\Password\PoolDecorator(
$cache, // an instance of \Psr\Cache\CacheItemPoolInterface
$password,
$cipher // optional, defaults to 'aes-256-cbc'
);