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

Pure-PHP implementation of DES.

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

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

$des->setKey('abcdefgh');

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

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

Classes

DES Pure-PHP implementation of DES.