FileAccess Orion

Encryption

Define hash and decrypt handler

Tags
category

Interface function

author

Tobias Teichner webmaster@teichner.biz

since

File available since v2.1.0

Table of Contents

CheckPassword()  : bool
Check password hash
HashPassword()  : false|null|string
Create password hash creates a secured, salted password hash using custom method

Methods

CheckPassword()

Check password hash

public static CheckPassword(string $password, string $hash) : bool

Test the given plain password against defined hash

Parameters
$password : string

The raw password

$hash : string

The hashed password

Return values
bool

True whn hash and password are fitting

HashPassword()

Create password hash creates a secured, salted password hash using custom method

public static HashPassword(string $password) : false|null|string
Parameters
$password : string

The raw password

Return values
false|null|string

The hashed password or, empty on error

Search results