PHP Класс Dcrypt\Rc4

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
crypt ( string $str, string $key ) : string Perform (en/de)cryption

Защищенные методы

Метод Описание
initializeState ( string $key ) : array Create the initial byte matrix that will be used for swaps. This code is identical between RC4 and Spritz.

Описание методов

crypt() публичный статический Метод

Perform (en/de)cryption
public static crypt ( string $str, string $key ) : string
$str string String to be encrypted
$key string Key to use for encryption
Результат string

initializeState() защищенный статический Метод

Create the initial byte matrix that will be used for swaps. This code is identical between RC4 and Spritz.
protected static initializeState ( string $key ) : array
$key string
Результат array