Functions

BBBB()

BBBB() 

Test()

Test() 

checkDependencies()

checkDependencies() 

generateStatus()

generateStatus($status, $str) 

Parameters

$status

$str

getfile()

getfile($url, $path) 

Parameters

$url

$path

install()

install() 

Get information about the password hash.

password_get_info(string $hash) : array

Returns an array of the information that was used to generate the password hash.

array( 'algo' => 1, 'algoName' => 'bcrypt', 'options' => array( 'cost' => 10, ), )

Parameters

$hash

string

The password hash to extract info from

Returns

arrayThe array of information about the hash.

Hash the password using the specified algorithm

password_hash(string $password, int $algo, array $options) : string | false

Parameters

$password

string

The password to hash

$algo

int

The algorithm to use (Defined by PASSWORD_* constants)

$options

array

The options for the algorithm to use

Returns

stringfalseThe hashed password, or false on error.

Determine if the password hash needs to be rehashed according to the options provided

password_needs_rehash(string $hash, int $algo, array $options) : boolean

If the answer is true, after validating the password using password_verify, rehash it.

Parameters

$hash

string

The hash to test

$algo

int

The algorithm used for new password hashes

$options

array

The options array passed to password_hash

Returns

booleanTrue if the password needs to be rehashed.

Verify a password against a hash using a timing attack resistant approach

password_verify(string $password, string $hash) : boolean

Parameters

$password

string

The password to verify

$hash

string

The hash to verify against

Returns

booleanIf the password matches the hash

removeSetup()

removeSetup() 

Classes and interfaces

ErrorReporter

ErrorReporting Klasse

« More »

FooBar

« More »

Constants

 

ANOTHER_TEST

ANOTHER_TEST 
 

CCCC

CCCC 
 

FOO

FOO 
 

PASSWORD_BCRYPT

PASSWORD_BCRYPT 
 

PASSWORD_DEFAULT

PASSWORD_DEFAULT 
 

STARTTIME

STARTTIME 
 

TEST

TEST