Jelix 1.8.13

jAuthPassword
in package

Tags
since
1.8.3

Table of Contents

STRENGTH_BAD_PASS  = -1
STRENGTH_GOOD  = 3
STRENGTH_NONE  = 0
STRENGTH_POOR  = 1
STRENGTH_STRONG  = 4
STRENGTH_WEAK  = 2
checkPasswordStrength()  : mixed
getRandomPassword()  : string
generate a password with random letters, numbers and special characters.

Constants

Methods

checkPasswordStrength()

public static checkPasswordStrength(mixed $password[, mixed $minLength = 12 ]) : mixed
Parameters
$password : mixed
$minLength : mixed = 12
Tags
Return values
mixed

getRandomPassword()

generate a password with random letters, numbers and special characters.

public static getRandomPassword([int $length = 12 ][, bool $withoutSpecialChars = false ]) : string
Parameters
$length : int = 12

the length of the generated password

$withoutSpecialChars : bool = false

(optional, default false) the generated password may be use this characters : !@#$%^&*?_,~

Tags
Return values
string

the generated password

Search results