ammarfaizi2 / icecrypt
IceCrypt PHP 加密
0.0.1
2017-12-17 13:30 UTC
Requires (Dev)
- phpunit/phpunit: ^6.5
This package is not auto-updated.
Last update: 2024-09-15 05:14:09 UTC
README
一个用于秘密管理和加密服务的工具。
安装
composer require ammarfaizi2/icecrypt
示例
<?php require __DIR__ . "/vendor/autoload.php"; use IceCrypt\IceCrypt; $string = "Hello World!"; $key = "secret12345"; // encrypt $encrypted_string = IceCrypt::encrypt($string, $key); echo "Encrypted string : " . $encrypted_string . "\n"; // decrypt $decrypted_string = IceCrypt::decrypt($encrypted_string, $key); echo "Decrypted string : " . $decrypted_string . "\n";
许可证
许可协议:MIT 许可证[链接]