Méthode | Description | |
---|---|---|
ihmac ( string $data, string $key, integer $iter, string $algo = 'sha256' ) : string | Perform a raw iterative HMAC operation with a configurable algo. | |
make ( string $input, string $password, integer $cost = 250000 ) : string | Hash an input string into a salted 512 byte hash. | |
verify ( string $input, string $hash, string $password ) : boolean | Check the validity of a hash. |
Méthode | Description | |
---|---|---|
build ( string $input, string $password, integer $cost, string | null $salt = null ) : string | Internal function used to build the actual hash. | |
cost ( integer $cost ) : integer | Return a normalized cost value. | |
costHash ( $cost, $salt, $password ) |