38 public function crypt( $plaintext ) {
39 if ( count( $this->args ) === 1 ) {
44 $this->hash = md5( $this->args[0] .
'-' . md5( $plaintext ) );
47 $this->hash = md5( $plaintext );
50 if ( !is_string( $this->hash ) || strlen( $this->hash ) < 32 ) {
The old style of MediaWiki password hashing.
getDelimiter()
Returns the delimiter for the parameters inside the hash.
crypt( $plaintext)
Hash a password and store the result in this object.
getDefaultParams()
Return an ordered array of default parameters for this password hash.
Helper class for password hash types that have a delimited set of parameters inside of the hash.
Show an error when any operation involving passwords fails to run.