jaeger-app/encrypt

该包已被废弃且不再维护。没有建议的替代包。

简单的加密封装。

0.1.3 2016-11-30 09:30 UTC

This package is auto-updated.

Last update: 2023-11-18 01:56:13 UTC


README

Build Status Scrutinizer Code Quality Author GitHub license

提供简单的API来处理字符串的加密和解密。

安装

jaeger-app/encrypt添加到你的composer.json文件中的依赖项

$ composer require jaeger-app/encrypt

基本用法

$encrypt = new Encrypt();
$encrypt->setKey($encryption_key);
$encoded = $encrypt->encode($string);
$decoded = $encrypt->decode($encoded);
$guid = $encrypt->guid();