RC4
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- RC4 stream decryption/encryption constrcutor.
- RC4() : string
- Symmetric decryption/encryption function.
Properties
$i
protected
int
$i
= 0
$j
protected
int
$j
= 0
$s
protected
array<string|int, int>
$s
= []
Methods
__construct()
RC4 stream decryption/encryption constrcutor.
public
__construct(string $key) : mixed
Parameters
- $key : string
-
Encryption key/passphrase
RC4()
Symmetric decryption/encryption function.
public
RC4(string $data) : string
Parameters
- $data : string
-
Data to encrypt/decrypt