lib/plugin/webauth/vendor/phpseclib/phpseclib/phpseclib/CryptBlowfish.php

Pure-PHP implementation of Blowfish.

Uses mcrypt, if available, and an internal implementation, otherwise.

PHP version 5

Useful resources are as follows:

Here's a short example of how to use this library: <?php include 'vendor/autoload.php';

$blowfish = new \phpseclib\Crypt\Blowfish();

$blowfish->setKey('12345678901234567890123456789012');

$plaintext = str_repeat('a', 1024);

echo $blowfish->decrypt($blowfish->encrypt($plaintext)); ?>

Classes

Blowfish Pure-PHP implementation of Blowfish.