jlanger / blowfish
Blowfish encryption
v2.0.0
2020-06-12 16:20 UTC
Requires
- php: >=7.4
Requires (Dev)
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2025-04-15 23:54:02 UTC
README
Usage:
use JLanger\Blowfish\Blowfish;
require_once __DIR__ . '/../vendor/autoload.php';
$key = 'hgjdjHJkdjHGJ7937dHJ93nj';
$blowfish = new Blowfish($key);
echo 'encrypt string "Hello World"<br>';
$stringToEncrypt = 'Hello World';
$encryptedString = $blowfish->encrypt($stringToEncrypt);
echo 'Encrypted String: ' . $encryptedString . '<br>';
echo 'decrypt encrypted string:' . '<br>';
echo $blowfish->decrypt($encryptedString);