affinity4/cipher
Composer 安装命令:
composer require affinity4/cipher
包简介
Cipher encrypt/decrypt. Encrypt and decrypt private strings. Useful if you need to store a string as a hash but need to see it as plain text also. DO NOT USE FOR PASSWORD AUTHENTICATION!
README 文档
README
Encrypt and decrypt private strings. Useful if you need to store a string as a hash but need to see it as plain text also.
DO NOT USE FOR PASSWORD AUTHENTICATION!
Installation
Composer
composer require affinity4/cipher
Usage
// Used by both excrypt and decrypt methods, so should be available globally // Perhaps as an environment variable $key = 'b1f1e6225cb2b6d0230b16125e45ca63'; $str = 'my secret'; $encrypted = \Affinity4\Cipher\Cipher::encrypt($str, $key); // piqwpeiqep12801aqwie0248quqjowq== $decrypted = \Affinity4\Cipher\Cipher::decrypt($encrypted, $key); // my secret
Licence
MIT 2018 Luke Watts
统计信息
- 总下载量: 376
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-04-07