34 protected $lockable = TRUE;
36 public $hash =
'empty';
38 const LOCKVALUE =
'{CRYPT}!';
55 public function generate_hash (
string $pwd,
bool $locked = FALSE): string
57 return ($locked ? static::LOCKVALUE :
'');
78 static function _extract_method ($password_hash):
string 80 if (empty($password_hash) || ($password_hash == static::LOCKVALUE)) {
81 return static::get_hash_name();
generate_hash(string $pwd, bool $locked=FALSE)
Generate template hash.
__construct()
passwordMethodEmpty Constructor
This class contains all the functions for empty password method.
need_password()
Password needed.
This class contains all the basic function for password methods.
static get_hash_name()
Get the hash name.