PHP Класс Pop\Crypt\Mcrypt

Автор: Nick Sagona, III ([email protected])
Наследование: extends Pop\Crypt\AbstractCrypt
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$cipher integer Cipher
$iv string IV
$ivSize integer IV size
$mode integer Mode
$salt string Salt
$source integer Source

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

Метод Описание
__construct ( integer $cipher = null, integer $mode = null, integer $source = null ) : self Constructor
create ( string $string ) : string Method to create the hashed value
decrypt ( string $hash ) : string Method to decrypt the hashed value
getCipher ( ) : integer Method to get the cipher
getIv ( ) : string Method to get the iv
getIvSize ( ) : integer Method to get the iv size
getMode ( ) : integer Method to get the mode
getSalt ( ) : string Method to get the salt
getSource ( ) : integer Method to get the source
setCipher ( integer $cipher = null ) : self Method to set the cipher
setMode ( integer $mode = null ) : self Method to set the mode
setSalt ( string $salt = null ) : self Method to set the salt
setSource ( integer $source = null ) : self Method to set the source
verify ( string $string, string $hash ) : boolean Method to verify the hashed value

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

__construct() публичный Метод

Instantiate the mcrypt object.
public __construct ( integer $cipher = null, integer $mode = null, integer $source = null ) : self
$cipher integer
$mode integer
$source integer
Результат self

create() публичный Метод

Method to create the hashed value
public create ( string $string ) : string
$string string
Результат string

decrypt() публичный Метод

Method to decrypt the hashed value
public decrypt ( string $hash ) : string
$hash string
Результат string

getCipher() публичный Метод

Method to get the cipher
public getCipher ( ) : integer
Результат integer

getIv() публичный Метод

Method to get the iv
public getIv ( ) : string
Результат string

getIvSize() публичный Метод

Method to get the iv size
public getIvSize ( ) : integer
Результат integer

getMode() публичный Метод

Method to get the mode
public getMode ( ) : integer
Результат integer

getSalt() публичный Метод

Method to get the salt
public getSalt ( ) : string
Результат string

getSource() публичный Метод

Method to get the source
public getSource ( ) : integer
Результат integer

setCipher() публичный Метод

Method to set the cipher
public setCipher ( integer $cipher = null ) : self
$cipher integer
Результат self

setMode() публичный Метод

Method to set the mode
public setMode ( integer $mode = null ) : self
$mode integer
Результат self

setSalt() публичный Метод

Method to set the salt
public setSalt ( string $salt = null ) : self
$salt string
Результат self

setSource() публичный Метод

Method to set the source
public setSource ( integer $source = null ) : self
$source integer
Результат self

verify() публичный Метод

Method to verify the hashed value
public verify ( string $string, string $hash ) : boolean
$string string
$hash string
Результат boolean

Описание свойств

$cipher защищенное свойство

Cipher
protected int $cipher
Результат integer

$iv защищенное свойство

IV
protected string $iv
Результат string

$ivSize защищенное свойство

IV size
protected int $ivSize
Результат integer

$mode защищенное свойство

Mode
protected int $mode
Результат integer

$salt защищенное свойство

Salt
protected string $salt
Результат string

$source защищенное свойство

Source
protected int $source
Результат integer