arispati/php-encrypt-file
Composer 安装命令:
composer require arispati/php-encrypt-file
包简介
PHP library for encrypt and decrypt file
README 文档
README
PHP library for encrypt and decrypt file
How to Install
- Install with composer
composer require arispati/php-encrypt-file
How to Use
use Arispati\PhpEncryptFile\Crypt; // by default use 'AES-256-CBC' cipher // you can change it on the second argument $crypt = new Crypt('your-secret-key'); // to encrypt $crypt->encrypt('./path/to/plainFile.ext', './path/to/encryptedFile.ext'); // to decrypt $crypt->decrypt('./path/to/encryptedFile.ext', './path/to/decryptedFile.ext');
Credits
- Thanks to Antoine Lamé - Medium.
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-11-12