HashingStrategy

Hashing Strategy manager.

This class will load system provided hashing strategies and algorithms.

package

Default

Methods

__construct

__construct() 

Get an algorithm interface by its Id

get( $arg0) : \io\vertx\jphp\ext\auth\HashingAlgorithm

Arguments

$arg0

string

Response

\io\vertx\jphp\ext\auth\HashingAlgorithm

the algorithm

Hashes a password.

hash( $arg0,  $arg1,  $arg2,  $arg3) : string

Arguments

$arg0

string

$arg1

array

$arg2

string

$arg3

string

Response

string

the hashed string

Factory method to load the algorithms from the system

load() : \io\vertx\jphp\ext\auth\HashingStrategy
static

Response

\io\vertx\jphp\ext\auth\HashingStrategy

a Hashing Strategy capable of hashing using the available algorithms

Put or replace an algorithm into the list of system loaded algorithms.

put( $arg0,  $arg1) : $this

Arguments

$arg0

string

$arg1

HashingAlgorithm

Response

$this

self

Time constant password check. Regardless of the check, this algorithm executes the same number of checks regardless of the correctly number of characters

verify( $arg0,  $arg1) : boolean

Arguments

$arg0

string

$arg1

string

Response

boolean

boolean