jlanger/blowfish

Blowfish encryption

v2.0.0 2020-06-12 16:20 UTC

This package is auto-updated.

Last update: 2024-09-15 22:37:18 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);