MediaWiki
1.33.0
|
Implements Argon2, a modern key derivation algorithm designed to resist GPU cracking and side-channel attacks. More...
Public Member Functions | |
crypt ( $password) | |
@inheritDoc More... | |
equals ( $other) | |
@inheritDoc More... | |
needsUpdate () | |
@inheritDoc More... | |
toString () | |
@inheritDoc More... | |
verify ( $password) | |
@inheritDoc More... | |
Public Member Functions inherited from Password | |
__construct (PasswordFactory $factory, array $config, $hash=null) | |
Construct the Password object using a string hash. More... | |
getType () | |
Get the type name of the password. More... | |
Protected Member Functions | |
isSupported () | |
@inheritDoc More... | |
Protected Member Functions inherited from Password | |
assertIsSafeSize ( $hash) | |
Assert that hash will fit in a tinyblob field. More... | |
parseHash ( $hash) | |
Perform any parsing necessary on the hash to see if the hash is valid and/or to perform logic for seeing if the hash needs updating. More... | |
Private Member Functions | |
prepareParams () | |
Static Private Attributes | |
static null[] | $knownOptions |
Array with known password_hash() option names as keys. More... | |
Additional Inherited Members | |
Public Attributes inherited from Password | |
const | MAX_HASH_SIZE = 255 |
Hash must fit in user_password, which is a tinyblob. More... | |
Protected Attributes inherited from Password | |
array | $config |
Array of configuration variables injected from the constructor. More... | |
PasswordFactory | $factory |
Factory that created the object. More... | |
string | $hash |
String representation of the hash without the type. More... | |
Implements Argon2, a modern key derivation algorithm designed to resist GPU cracking and side-channel attacks.
Definition at line 30 of file Argon2Password.php.
Argon2Password::crypt | ( | $password | ) |
@inheritDoc
Reimplemented from Password.
Definition at line 75 of file Argon2Password.php.
References $params, list, and prepareParams().
Argon2Password::equals | ( | $other | ) |
@inheritDoc
Reimplemented from Password.
Definition at line 83 of file Argon2Password.php.
References verify().
|
protected |
Argon2Password::needsUpdate | ( | ) |
@inheritDoc
Reimplemented from Password.
Definition at line 113 of file Argon2Password.php.
References $params, list, and prepareParams().
|
private |
Definition at line 51 of file Argon2Password.php.
References $params.
Referenced by crypt(), and needsUpdate().
Argon2Password::toString | ( | ) |
@inheritDoc
Reimplemented from Password.
Definition at line 104 of file Argon2Password.php.
References $res, and Password\assertIsSafeSize().
Argon2Password::verify | ( | $password | ) |
@inheritDoc
Reimplemented from Password.
Definition at line 95 of file Argon2Password.php.
Referenced by equals().
|
staticprivate |
Array with known password_hash() option names as keys.
Definition at line 34 of file Argon2Password.php.