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

Pure-PHP implementation of RC2.

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

$rc2 = new \phpseclib\Crypt\RC2();

$rc2->setKey('abcdefgh');

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

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

Classes

RC2 Pure-PHP implementation of RC2.