PHP code example of lsys / encrypt

1. Go to this page and download the library: Download lsys/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/ */

    

lsys / encrypt example snippets


//$key 默认随机生成,每次生成只能当次解密
//需要加密解密分离,请添加配置文件 参见 /dome 目录
$en=LSYS\Encrypt\DI::get()->encrypt();
//加密
$encode=$en->encode("ddd");
//解密
var_dump($en->decode($encode));