Documentation

RC4
in package

Table of Contents

Properties

$i  : int
$j  : int
$s  : array<string|int, int>

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

Return values
string

        
On this page

Search results