Download the PHP package wll/encrypt without Composer
On this page you can find all versions of the php package wll/encrypt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package encrypt
encrypt
encrypt可逆加密,从laravel中提取出来,用于php 比如hyperf框架,其它非框架也可以用
基本使用
1、 下载包
2、 发布配置生成文件:config/autoload/encrypt.php
3、 开始使用 - 授权控制器中写
use Wll\Encrypt\Encryption\EncryptionHyperfServiceProvider; //hyperf 中使用
//use Wll\Encrypt\Encryption\EncryptionLaravelServiceProvider; //laravel 中使用 然当也可以用app()方式调用
//use Wll\Encrypt\Encryption\EncryptionPhpServiceProvider; //php 中使用
public function index(){
$encryptionHyperfServiceProvider = new EncryptionHyperfServiceProvider();
$encrypt = $encryptionHyperfServiceProvider->register();
//生成密码
$pass = $encrypt->encrypt('admin', true);
//解密
$descPass=$encrypt->decrypt($pass, true);
//
return ['pass'=>$pass,'descPass'=>$descPass];
}
All versions of encrypt with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
The package wll/encrypt contains the following files
Loading the files please wait ....