Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Latest commit

 

History

History
26 lines (18 loc) · 465 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 465 Bytes

Crypt Blowfish

Fork https://github.com/pear/Crypt_Blowfish

Installation

$ composer require shimochi/crypt-blowfish

Usage

<?php

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

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

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

LICENSE

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