1. Go to this page and download the library: Download tiagocomti/yii2-cryptbox 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/ */
tiagocomti / yii2-cryptbox example snippets
//Keep this name
'cryptbox' => [
'class' => 'tiagocomti\cryptbox\Cryptbox',
//A path to save our keys.
'keysPath' => __DIR__."/../../keys/",
// Execute: php yii cryptBox/crypt/encode '{Your key}'
// This key will be used for
'secret' => '{"1":95,"2":86,"3":65,"4":77,"5":79,"6":83,"7":66,"8":82,"9":73,"10":78,"11":68,"12":65,"13":82,"14":79,"15":72,"16":79,"17":74,"18":69,"19":65,"20":77,"21":65,"22":78,"23":72,"24":65,"25":83,"26":79,"27":65,"28":68,"29":69,"30":85,"31":83,"32":95}',
// Less security but faster
'enableCache' => true,
//In seconds
'timeCache' => 800
],