dorantor/simple-crypt
Composer 安装命令:
composer require dorantor/simple-crypt
包简介
Very simple lib for symmetric en/decrypt messages so they could be sent through untrusted channels.
关键字:
README 文档
README
Very simple lib for symmetric en/decrypt messages so they could be sent through untrusted channels.
Installation
composer require dorantor/simple-crypt
Usage
// 32 byte string as key $key = md5('simple-crypt'); // 1b8ee2dc7723b2846792349dd4c74dc2 $crypt = new \Dorantor\SimpleCrypt($key); $eMessage = $crypt->encrypt('Secret message that should be read only by trusted ones'); // ... $oMessage = $crypt->decrypt($eMessage);
License
The library is released under the MIT License. See the bundled LICENSE file for details.
统计信息
- 总下载量: 9.19k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-06-21