pbes/crypt-blowfish

Fork https://github.com/shimochi/Crypt_Blowfish for supporting PHP 7.4

1.0.4 2020-10-30 05:08 UTC

This package is not auto-updated.

Last update: 2024-04-26 21:19:17 UTC


README

Fork of https://github.com/pear/Crypt_Blowfish and https://github.com/shimochi/Crypt_Blowfish

Installation

$ composer require pbes/crypt-blowfish

Usage

<?php

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

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

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

LICENSE

The Crypt Blowfish is open source software licensed under the BSD 2-Clause License.