PasswordManipulation
Table of Contents
- $password_len : int
- Store password default length.
- generatePassword() : string
- Generate the password.
- getLength() : int
- Get the password default length.
- isValid() : bool
- Validate the password.
- len() : int
- Get password length.
- setLength() : self
- Set the password default length.
- isN() : bool
- Check is the integer included in password.
- isS() : bool
- Check is special character is in password.
Properties
$password_len
Store password default length.
private
int
$password_len
= 30
Tags
Methods
generatePassword()
Generate the password.
public
generatePassword([(int) $length = 30 ]) : string
Parameters
- $length : (int) = 30
-
Password length.
Tags
Return values
string —getLength()
Get the password default length.
public
getLength() : int
Tags
Return values
int —isValid()
Validate the password.
public
isValid( $password) : bool
Parameters
Tags
Return values
bool —len()
Get password length.
public
len( $password) : int
Parameters
Tags
Return values
int —setLength()
Set the password default length.
public
setLength((int) $length) : self
Parameters
- $length : (int)
-
Length of password.
Tags
Return values
self —isN()
Check is the integer included in password.
private
isN( $password) : bool
Parameters
Tags
Return values
bool —isS()
Check is special character is in password.
private
isS( $password) : bool