Password
class Password (View source)
The SimplePassword class.
Constants
MD5 |
|
BLOWFISH |
|
SHA256 |
|
SHA512 |
|
Methods
__construct(int $type = self::BLOWFISH, int $cost = 10, string $salt = null)
Constructor.
string
create(string $password)
create
boolean
verify(string $password, string $hash)
Verify the password.
static string
genRandomPassword(integer $length = 8)
Generate a random password.
string
getSalt()
Method to get property Salt
int
getCost()
Method to get property Cost
int
getType()
Method to get property Type
Details
at line line 54
__construct(int $type = self::BLOWFISH, int $cost = 10, string $salt = null)
Constructor.
at line line 68
string
create(string $password)
create
at line line 131
boolean
verify(string $password, string $hash)
Verify the password.
at line line 182
static string
genRandomPassword(integer $length = 8)
Generate a random password.
This is a fork of Joomla JUserHelper::genRandomPassword()
at line line 213
string
getSalt()
Method to get property Salt
at line line 237
int
getCost()
Method to get property Cost
at line line 262
int
getType()
Method to get property Type