PHP Interface Pop\Crypt\CryptInterface

Author: Nick Sagona, III ([email protected])
Mostrar archivo Open project: nicksagona/PopPHP

Public Methods

Method Description
create ( string $string ) : string Method to create the hashed value
getSalt ( ) : string Method to get the salt
setSalt ( string $salt = null ) : self Method to set the salt
verify ( string $string, string $hash ) : boolean Method to create the hashed value

Method Details

create() public method

Method to create the hashed value
public create ( string $string ) : string
$string string
return string

getSalt() public method

Method to get the salt
public getSalt ( ) : string
return string

setSalt() public method

Method to set the salt
public setSalt ( string $salt = null ) : self
$salt string
return self

verify() public method

Method to create the hashed value
public verify ( string $string, string $hash ) : boolean
$string string
$hash string
return boolean