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;
 
   75                for ($c = 0; $c < $len; $c++) {
 
   76                        $this->i = ($this->i + 1) % 256;
 
   77                        $this->j = ($this->j + $this->s[
$this->i]) % 256;
 
An exception for terminatinating execution or to throw for unit testing.
__construct($key)
RC4 stream decryption/encryption constrcutor.
RC4($data)
Symmetric decryption/encryption function.