add mode to all block cipher examples

This commit is contained in:
terrafrost 2021-02-04 01:06:14 -06:00
parent 8797d76009
commit a18b86ae26
7 changed files with 7 additions and 7 deletions

View File

@ -25,7 +25,7 @@
* <?php
* include 'vendor/autoload.php';
*
* $aes = new \phpseclib3\Crypt\AES();
* $aes = new \phpseclib3\Crypt\AES('ctr');
*
* $aes->setKey('abcdefghijklmnop');
*

View File

@ -16,7 +16,7 @@
* <?php
* include 'vendor/autoload.php';
*
* $blowfish = new \phpseclib3\Crypt\Blowfish();
* $blowfish = new \phpseclib3\Crypt\Blowfish('ctr');
*
* $blowfish->setKey('12345678901234567890123456789012');
*

View File

@ -18,7 +18,7 @@
* <?php
* include 'vendor/autoload.php';
*
* $des = new \phpseclib3\Crypt\DES();
* $des = new \phpseclib3\Crypt\DES('ctr');
*
* $des->setKey('abcdefgh');
*

View File

@ -16,7 +16,7 @@
* <?php
* include 'vendor/autoload.php';
*
* $rc2 = new \phpseclib3\Crypt\RC2();
* $rc2 = new \phpseclib3\Crypt\RC2('ctr');
*
* $rc2->setKey('abcdefgh');
*

View File

@ -30,7 +30,7 @@
* <?php
* include 'vendor/autoload.php';
*
* $rijndael = new \phpseclib3\Crypt\Rijndael();
* $rijndael = new \phpseclib3\Crypt\Rijndael('ctr');
*
* $rijndael->setKey('abcdefghijklmnop');
*

View File

@ -12,7 +12,7 @@
* <?php
* include 'vendor/autoload.php';
*
* $des = new \phpseclib3\Crypt\TripleDES();
* $des = new \phpseclib3\Crypt\TripleDES('ctr');
*
* $des->setKey('abcdefghijklmnopqrstuvwx');
*

View File

@ -16,7 +16,7 @@
* <?php
* include 'vendor/autoload.php';
*
* $twofish = new \phpseclib3\Crypt\Twofish();
* $twofish = new \phpseclib3\Crypt\Twofish('ctr');
*
* $twofish->setKey('12345678901234567890123456789012');
*