class RC4 (View source)

Properties

protected $s
protected $i
protected $j

Methods

__construct(string $key)

RC4 stream decryption/encryption constrcutor.

string
RC4(string $data)

Symmetric decryption/encryption function.

Details

__construct(string $key)

RC4 stream decryption/encryption constrcutor.

Parameters

string $key Encryption key/passphrase

string RC4(string $data)

Symmetric decryption/encryption function.

Parameters

string $data Data to encrypt/decrypt

Return Value

string