Class to simplify dealing with bcrypt for password handling

see
package miniMVC
subpackage libraries

 Methods

Create a new Bcrypt object

__construct(int $rounds) 

Parameters

$rounds

int

Returns a has for the input string

hash($input) : string

Parameters

$input

string

Returns

string

Check if a password hash is valid

verify($input, $existingHash) : bool

Parameters

$input

string

$existingHash

string

Returns

bool

Further randomizes salt?

encodeBytes($input) : string

Parameters

$input

string

Returns

string

Private method to generate random characters for salt

getRandomBytes($count) : string

Parameters

$count

int

Returns

string

Private function to generate the random salt

getSalt() : string

Returns

string

 Properties

 

Stores random seed

$randomState : mixed

 

Number of times to recurse

$rounds : int