PHP Class Redaxscript\Hash

Since: 2.6.0
Author: Henry Ruhs
Afficher le fichier Open project: redaxmedia/redaxscript Class Usage Examples

Protected Properties

Свойство Type Description
$_config object instance of the config class
$_hash string salted hash
$_raw string plain raw

Méthodes publiques

Méthode Description
__construct ( Config $config ) constructor of the class
getHash ( ) get the hash
getRaw ( ) get the raw
init ( string $raw = null ) init the class
validate ( string $raw = null, string $hash = null ) : boolean validate raw again hash

Méthodes protégées

Méthode Description
_create ( ) create a salted hash

Method Details

__construct() public méthode

constructor of the class
Since: 2.6.0
public __construct ( Config $config )
$config Config instance of the config class

_create() protected méthode

create a salted hash
Since: 2.6.0
protected _create ( )

getHash() public méthode

get the hash
Since: 2.6.0
public getHash ( )

getRaw() public méthode

get the raw
Since: 2.6.0
public getRaw ( )

init() public méthode

init the class
Since: 2.6.0
public init ( string $raw = null )
$raw string plain raw

validate() public méthode

validate raw again hash
Since: 2.6.0
public validate ( string $raw = null, string $hash = null ) : boolean
$raw string plain raw
$hash string salted hash
Résultat boolean

Property Details

$_config protected_oe static_oe property

instance of the config class
protected static object $_config
Résultat object

$_hash protected_oe property

salted hash
protected string $_hash
Résultat string

$_raw protected_oe property

plain raw
protected string $_raw
Résultat string