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

Pure-PHP implementation of Triple DES.

Uses mcrypt, if available, and an internal implementation, otherwise. Operates in the EDE3 mode (encrypt-decrypt-encrypt).

PHP version 5

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

$des = new \phpseclib\Crypt\TripleDES();

$des->setKey('abcdefghijklmnopqrstuvwx');

$size = 10 * 1024; $plaintext = ''; for ($i = 0; $i < $size; $i++) { $plaintext.= 'a'; }

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

Classes

TripleDES Pure-PHP implementation of Triple DES.