PHP Class Pop\Crypt\Crypt

Author: Nick Sagona, III ([email protected])
Inheritance: implements Pop\Crypt\CryptInterface
Afficher le fichier Open project: nicksagona/PopPHP Class Usage Examples

Protected Properties

Свойство Type Description
$salt string Salt

Méthodes publiques

Méthode Description
__construct ( string $salt = null ) : self Constructor
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 verify the hashed value

Method Details

__construct() public méthode

Instantiate the crypt object.
public __construct ( string $salt = null ) : self
$salt string
Résultat self

create() public méthode

Method to create the hashed value
public create ( string $string ) : string
$string string
Résultat string

getSalt() public méthode

Method to get the salt
public getSalt ( ) : string
Résultat string

setSalt() public méthode

Method to set the salt
public setSalt ( string $salt = null ) : self
$salt string
Résultat self

verify() public méthode

Method to verify the hashed value
public verify ( string $string, string $hash ) : boolean
$string string
$hash string
Résultat boolean

Property Details

$salt protected_oe property

Salt
protected string $salt
Résultat string