edusalguero/zifratu
Composer 安装命令:
composer require edusalguero/zifratu
包简介
A PHP library to encrypt and decrypt using AES in a MySQL compatible way
README 文档
README
Zifratu
Zifratu is a simple PHP library to encrypt and decrypt using AES in a MySQL compatible way
Usage
<?php $secret = 'my secret key'; $valueToSecure = 'test'; $zifratu = new \EduSalguero\Zifratu\ZifratuFacade($secret); $encryptedValue = $zifratu->encrypt($valueToSecure); $decryptedValue = $zifratu->decrypt($encryptedValue); printf('Secret: %s' . PHP_EOL, $secret); printf('Value to secure: %s' . PHP_EOL, $valueToSecure); printf('Encrypted value: %s' . PHP_EOL, $encryptedValue); printf('Decrypted value: %s' . PHP_EOL, $decryptedValue);
统计信息
- 总下载量: 38
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-12-08