limingxinleo/i-encryption
最新稳定版本:v1.1.0
Composer 安装命令:
composer require limingxinleo/i-encryption
包简介
Illuminate Encryption for Hyperf
README 文档
README
安装
composer require limingxinleo/i-encryption
配置
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ return [ 'default' => [ 'key' => '', 'cipher' => '', ], ];
使用
use Hyperf\Utils\ApplicationContext; use Illuminate\Encryption\Contracts\Encrypter; $encrypter = ApplicationContext::getContainer()->get(Encrypter::class); $encrypted = $encrypter->encrypt('foo'); $decrypted = $encrypter->decrypt($encrypted);
统计信息
- 总下载量: 509
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-02-05