TimeTrex API Manual

TTPassword
in package

Table of Contents

$latest_password_version  : mixed
checkPassword()  : bool
encryptPassword()  : string
generateRandomPassword()  : bool|string
getLatestVersion()  : int
getPasswordSalt()  : string
getPasswordStrength()  : int
getPasswordVersion()  : int|mixed

Properties

$latest_password_version

protected static mixed $latest_password_version = 3

Methods

checkPassword()

public static checkPassword(string $user_entered_password, string $database_password) : bool
Parameters
$user_entered_password : string
$database_password : string
Return values
bool

encryptPassword()

public static encryptPassword( $password[, null $id1 = null ][, null $id2 = null ][, int $version = null ]) : string
Parameters
$password :
$id1 : null = null
$id2 : null = null
$version : int = null
Return values
string

generateRandomPassword()

public static generateRandomPassword([int $length = 12 ]) : bool|string
Parameters
$length : int = 12
Return values
bool|string

getLatestVersion()

public static getLatestVersion() : int
Return values
int

getPasswordSalt()

public static getPasswordSalt() : string
Return values
string

getPasswordStrength()

public static getPasswordStrength( $password) : int
Parameters
$password :
Return values
int

getPasswordVersion()

public static getPasswordVersion(bool $encrypted_password) : int|mixed
Parameters
$encrypted_password : bool
Return values
int|mixed

Search results