Fix for 'Couldnt figure out a password hash for {SSHA}' fixes #286
This commit is contained in:
parent
13e645dde0
commit
bbef155fd2
@ -10,4 +10,9 @@ final class SHA extends Base
|
||||
{
|
||||
return sprintf('{%s}%s',self::key,base64_encode(hash('sha1',$password,true)));
|
||||
}
|
||||
|
||||
public static function subid(string $password): bool
|
||||
{
|
||||
return preg_match('/^{'.static::key.'}/',$password);
|
||||
}
|
||||
}
|
@ -16,4 +16,9 @@ final class SSHA extends Base
|
||||
{
|
||||
return sprintf('{%s}%s',self::key,$this->salted_hash($password,'sha1',self::salt,$salt));
|
||||
}
|
||||
|
||||
public static function subid(string $password): bool
|
||||
{
|
||||
return preg_match('/^{'.static::key.'}/',$password);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user