steein/cryptopad
Composer 安装命令:
composer require steein/cryptopad
包简介
This component provides a secure encryption using AES-256-CBC..
README 文档
README
This component provides a secure encryption using AES-256-CBC.
Version PHP : >= 7.0
$crypto = new \SteeinCrypt\CryptoPad(); //Test key and global key $key = 'rUhidagNflImJ3wB'; $global_key = '%31.1e$i86e$f!8jz';
Standard encryption text
$encrypt = $crypto->encrypt('default text', $key); echo $encrypt;
Standard decryption text
$decrypt = $crypto->decrypt($encrypt, $key); echo $decrypt;
Encryption and Decryption of text in base64
$encryptBase64 = $crypto->encryptBase64('base64_encrypt', $key, true); $crypto->decryptBase64($encryptBase64, $key, true);
Encryption using the global key
$global_crypt = $crypto ->setKey($global_key) ->encrypt('default_text', $key); $crypto->decrypt($global_crypt, $key);
Support or Contact
- Author: Shamsudin Serderov
- Version Library: 1.0.0
- Email: sourcecode@steein.ru
统计信息
- 总下载量: 33
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-01-01