dentmate/rajahan
Composer 安装命令:
composer require dentmate/rajahan
包简介
PHP package for encryption/decryption using AES algorithm compatible with CryptoJS
README 文档
README
PHP package for encryption/decryption using AES algorithm compatible with CryptoJS.
Algorithm
| Cipher | AES-256 |
| Mode | CBC |
| Key Derivation | evpkdf (OpenSSL custom, MD5, 1 iteration) |
Installation
Installation is best done via Composer, you may use the following command:
composer require dentmate/rajahan
This will add the latest release of rajahan as a module to your project
Example
This is an example code for using this library:
<?php
use DentMate\Rajahan\AES;
$passphrase = 'my passphrase';
$plain = 'example value';
$encrypted = AES::encrypt($plain, $passphrase);
print_r('Encrypted : ' . $encrypted);
$decrypted = AES::decrypt($encrypted, $passphrase);
print_r('Decrypted : ' . $decrypted);
License
Code licensed under Apache 2.0 License.
统计信息
- 总下载量: 41
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2022-05-09