pbes / crypt-blowfish

为支持 PHP 7.4,请从 https://github.com/shimochi/Crypt_Blowfish 进行 Fork

1.0.4 2020-10-30 05:08 UTC

This package is not auto-updated.

Last update: 2024-09-27 23:32:50 UTC


README

Fork 自 https://github.com/pear/Crypt_Blowfishhttps://github.com/shimochi/Crypt_Blowfish

安装方法

$ composer require pbes/crypt-blowfish

使用方法

<?php

require __DIR__ . '/../vendor/autoload.php';

$key = 'key';
$text = 'text';

$blowfish = \Crypt\Blowfish::factory('ecb', $key);
$encrypt = $blowfish->encrypt($text);
$decrypt = $blowfish->decrypt($encrypt);

许可证

Crypt Blowfish 是开源软件,遵循 BSD 2-Clause 许可协议。