Свойство | Тип | Описание | |
---|---|---|---|
$block_size | integer | RC4 is a stream cipher so we the block_size to 0 | |
$cipher_name_mcrypt | string | The mcrypt specific name of the cipher | |
$key | string | The Key | |
$key_length | integer | Key Length (in bytes) | |
$stream | array | The Key Stream for decryption and encryption | |
$use_inline_crypt | mixed | Holds whether performance-optimized $inline_crypt() can/should be used. |
Метод | Описание | |
---|---|---|
__construct ( ) : |
Default Constructor. | |
_crypt ( string $text, integer $mode ) : string | Encrypts or decrypts a message. | |
_decryptBlock ( string $in ) | Decrypts a block | |
_encryptBlock ( string $in ) | Encrypts a block | |
_setupKey ( ) | Setup the key (expansion) | |
decrypt ( string $ciphertext ) : string | Decrypts a message. | |
encrypt ( string $plaintext ) : string | Encrypts a message. | |
isValidEngine ( integer $engine ) : boolean | Test for engine validity | |
setKey ( $key ) | Sets the key length | |
setKeyLength ( integer $length ) | Sets the key length | |
usesIV ( ) : boolean | RC4 does not use an IV |
public isValidEngine ( integer $engine ) : boolean | ||
$engine | integer | |
Результат | boolean |
public setKeyLength ( integer $length ) | ||
$length | integer |
public int $block_size | ||
Результат | integer |
public string $cipher_name_mcrypt | ||
Результат | string |
public array $stream | ||
Результат | array |
public mixed $use_inline_crypt | ||
Результат | mixed |