mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-05 21:17:53 +00:00
add mode to all block cipher examples
This commit is contained in:
parent
8797d76009
commit
a18b86ae26
@ -25,7 +25,7 @@
|
||||
* <?php
|
||||
* include 'vendor/autoload.php';
|
||||
*
|
||||
* $aes = new \phpseclib3\Crypt\AES();
|
||||
* $aes = new \phpseclib3\Crypt\AES('ctr');
|
||||
*
|
||||
* $aes->setKey('abcdefghijklmnop');
|
||||
*
|
||||
|
@ -16,7 +16,7 @@
|
||||
* <?php
|
||||
* include 'vendor/autoload.php';
|
||||
*
|
||||
* $blowfish = new \phpseclib3\Crypt\Blowfish();
|
||||
* $blowfish = new \phpseclib3\Crypt\Blowfish('ctr');
|
||||
*
|
||||
* $blowfish->setKey('12345678901234567890123456789012');
|
||||
*
|
||||
|
@ -18,7 +18,7 @@
|
||||
* <?php
|
||||
* include 'vendor/autoload.php';
|
||||
*
|
||||
* $des = new \phpseclib3\Crypt\DES();
|
||||
* $des = new \phpseclib3\Crypt\DES('ctr');
|
||||
*
|
||||
* $des->setKey('abcdefgh');
|
||||
*
|
||||
|
@ -16,7 +16,7 @@
|
||||
* <?php
|
||||
* include 'vendor/autoload.php';
|
||||
*
|
||||
* $rc2 = new \phpseclib3\Crypt\RC2();
|
||||
* $rc2 = new \phpseclib3\Crypt\RC2('ctr');
|
||||
*
|
||||
* $rc2->setKey('abcdefgh');
|
||||
*
|
||||
|
@ -30,7 +30,7 @@
|
||||
* <?php
|
||||
* include 'vendor/autoload.php';
|
||||
*
|
||||
* $rijndael = new \phpseclib3\Crypt\Rijndael();
|
||||
* $rijndael = new \phpseclib3\Crypt\Rijndael('ctr');
|
||||
*
|
||||
* $rijndael->setKey('abcdefghijklmnop');
|
||||
*
|
||||
|
@ -12,7 +12,7 @@
|
||||
* <?php
|
||||
* include 'vendor/autoload.php';
|
||||
*
|
||||
* $des = new \phpseclib3\Crypt\TripleDES();
|
||||
* $des = new \phpseclib3\Crypt\TripleDES('ctr');
|
||||
*
|
||||
* $des->setKey('abcdefghijklmnopqrstuvwx');
|
||||
*
|
||||
|
@ -16,7 +16,7 @@
|
||||
* <?php
|
||||
* include 'vendor/autoload.php';
|
||||
*
|
||||
* $twofish = new \phpseclib3\Crypt\Twofish();
|
||||
* $twofish = new \phpseclib3\Crypt\Twofish('ctr');
|
||||
*
|
||||
* $twofish->setKey('12345678901234567890123456789012');
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user