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

Pure-PHP implementation of Twofish.

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';

$twofish = new \phpseclib\Crypt\Twofish();

$twofish->setKey('12345678901234567890123456789012');

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

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

Classes

Twofish Pure-PHP implementation of Twofish.