/var/www/vhosts/ihelp.ro/httpdocs/vendor/phpseclib/phpseclib/phpseclib/Crypt
NameSizeModeActions
Common/-0755rm
DH/-0755rm
DSA/-0755rm
EC/-0755rm
RSA/-0755rm
AES.php37370644editdlrm
Blowfish.php474300644editdlrm
ChaCha20.php373770644editdlrm
DES.php687920644editdlrm
DH.php191690644editdlrm
DSA.php93490644editdlrm
EC.php134310644editdlrm
Hash.php466880644editdlrm
PublicKeyLoader.php27050644editdlrm
Random.php95210644editdlrm
RC2.php217010644editdlrm
RC4.php73550644editdlrm
Rijndael.php441300644editdlrm
RSA.php279200644editdlrm
Salsa20.php147080644editdlrm
TripleDES.php135140644editdlrm
Twofish.php372240644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/phpseclib/phpseclib/phpseclib/Crypt/AES.php (3737B)
* setKey('abcdefghijklmnop'); * * $size = 10 * 1024; * $plaintext = ''; * for ($i = 0; $i < $size; $i++) { * $plaintext.= 'a'; * } * * echo $aes->decrypt($aes->encrypt($plaintext)); * ?> * * * @author Jim Wigginton * @copyright 2008 Jim Wigginton * @license http://www.opensource.org/licenses/mit-license.html MIT License * @link http://phpseclib.sourceforge.net */ namespace phpseclib3\Crypt; /** * Pure-PHP implementation of AES. * * @author Jim Wigginton */ class AES extends Rijndael { /** * Dummy function * * Since \phpseclib3\Crypt\AES extends \phpseclib3\Crypt\Rijndael, this function is, technically, available, but it doesn't do anything. * * @see \phpseclib3\Crypt\Rijndael::setBlockLength() * @param int $length * @throws \BadMethodCallException anytime it's called */ public function setBlockLength($length) { throw new \BadMethodCallException('The block length cannot be set for AES.'); } /** * Sets the key length * * Valid key lengths are 128, 192, and 256. Set the link to bool(false) to disable a fixed key length * * @see \phpseclib3\Crypt\Rijndael:setKeyLength() * @param int $length * @throws \LengthException if the key length isn't supported */ public function setKeyLength($length) { switch ($length) { case 128: case 192: case 256: break; default: throw new \LengthException('Key of size ' . $length . ' not supported by this algorithm. Only keys of sizes 128, 192 or 256 supported'); } parent::setKeyLength($length); } /** * Sets the key. * * Rijndael supports five different key lengths, AES only supports three. * * @see \phpseclib3\Crypt\Rijndael:setKey() * @see setKeyLength() * @param string $key * @throws \LengthException if the key length isn't supported */ public function setKey($key) { switch (strlen($key)) { case 16: case 24: case 32: break; default: throw new \LengthException('Key of size ' . strlen($key) . ' not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported'); } parent::setKey($key); } }