Definition at line 35 of file RC4.php.
◆ __construct()
PHPExcel_Reader_Excel5_RC4::__construct |
( |
|
$key | ) |
|
RC4 stream decryption/encryption constrcutor.
- Parameters
-
string | $key | Encryption key/passphrase |
Definition at line 47 of file RC4.php.
References $i, $j, $key, $t, and s.
51 for ($this->i = 0; $this->i < 256; $this->i++) {
56 for ($this->i = 0; $this->i < 256; $this->i++) {
57 $this->j = ($this->j + $this->
s[
$this->i] + ord(
$key[$this->i % $len])) % 256;
62 $this->i = $this->j = 0;
◆ RC4()
PHPExcel_Reader_Excel5_RC4::RC4 |
( |
|
$data | ) |
|
Symmetric decryption/encryption function.
- Parameters
-
string | $data | Data to encrypt/decrypt |
- Returns
- string
Definition at line 72 of file RC4.php.
References $data, $i, $j, $t, and s.
75 for ($c = 0; $c < $len; $c++) {
76 $this->i = ($this->i + 1) % 256;
77 $this->j = ($this->j + $this->
s[
$this->i]) % 256;
◆ $i
PHPExcel_Reader_Excel5_RC4::$i = 0 |
◆ $j
PHPExcel_Reader_Excel5_RC4::$j = 0 |
◆ $s
PHPExcel_Reader_Excel5_RC4::$s = array() |
The documentation for this class was generated from the following file:
- libs/composer/vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5/RC4.php