PHP Class Redaxscript\Hash

Since: 2.6.0
Author: Henry Ruhs
Mostrar archivo Open project: redaxmedia/redaxscript Class Usage Examples

Protected Properties

Property Type Description
$_config object instance of the config class
$_hash string salted hash
$_raw string plain raw

Public Methods

Method 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

Protected Methods

Method Description
_create ( ) create a salted hash

Method Details

__construct() public method

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

_create() protected method

create a salted hash
Since: 2.6.0
protected _create ( )

getHash() public method

get the hash
Since: 2.6.0
public getHash ( )

getRaw() public method

get the raw
Since: 2.6.0
public getRaw ( )

init() public method

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

validate() public method

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
return boolean

Property Details

$_config protected_oe static_oe property

instance of the config class
protected static object $_config
return object

$_hash protected_oe property

salted hash
protected string $_hash
return string

$_raw protected_oe property

plain raw
protected string $_raw
return string