limingxinleo/i-encryption 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

limingxinleo/i-encryption

最新稳定版本:v1.1.0

Composer 安装命令:

composer require limingxinleo/i-encryption

包简介

Illuminate Encryption for Hyperf

关键字:

README 文档

README

illuminate/encryption

安装

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

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-05