MD5Handler
Implements HandlerInterface, CheckIfRehashNeededHandlerInterfacePassword handler for MD5 hashed passwords
deprecated
since |
4.0.0 |
---|---|
deprecated |
4.0 will be removed in 6.0 Support for MD5 hashed passwords will be removed without replacement |
package |
Joomla CMS |
Methods
checkIfRehashNeeded
Check if the password requires rehashing
checkIfRehashNeeded(string hash) : bool
since |
4.0.0 |
---|
Arguments
- hash
string
The password hash to check
Response
bool
hashPassword
Generate a hash for a plaintext password
hashPassword(string plaintext, array options = []) : string
since |
4.0.0 |
---|
Arguments
- plaintext
string
The plaintext password to validate- options
array
Options for the hashing operation
Response
string
isSupported
Check that the password handler is supported in this environment
isSupported() : bool
static
since |
4.0.0 |
---|
Response
bool
validatePassword
Validate a password
validatePassword(string plaintext, string hashed) : bool
since |
4.0.0 |
---|
Arguments
- plaintext
string
The plain text password to validate- hashed
string
The password hash to validate against
Response
bool