PHP Trait Cartalyst\Sentinel\Hashing\Hasher

Datei anzeigen Open project: cartalyst/sentinel

Protected Properties

Property Type Description
$saltLength integer The salt length.

Protected Methods

Method Description
createSalt ( ) : string Create a random string for a salt.
slowEquals ( string $a, string $b ) : boolean Compares two strings $a and $b in length-constant time.

Method Details

createSalt() protected method

Create a random string for a salt.
protected createSalt ( ) : string
return string

slowEquals() protected method

Compares two strings $a and $b in length-constant time.
protected slowEquals ( string $a, string $b ) : boolean
$a string
$b string
return boolean

Property Details

$saltLength protected_oe property

The salt length.
protected int $saltLength
return integer