Pas3pHash Class Reference
[Usermanagement]
Calculates a hash using PHPPass 0.3 in portable mode. More...
Inheritance diagram for Pas3pHash:
Public Member Functions |
|
check ($source, $hash) | |
Validate if given hash matches source.
|
|
hash ($source) | |
Create hash. |
|
Protected Member Functions |
|
create_pass3_instance () | |
Return preconfigured instance of
PasswordHash. |
Detailed Description
Calculates a hash using PHPPass 0.3 in portable mode.
- Since:
- 0.6
Definition at line 12 of file pas3p.hash.php.
Member Function Documentation
Pas3pHash::check | ( | $ | source, | |
$ | hash | |||
) |
Validate if given hash matches source.
- Parameters:
-
string $source string $hash
- Returns:
- bool
Implements IHashAlgorithm.
Definition at line 27 of file pas3p.hash.php.
00027 { 00028 $o_hash = $this->create_pass3_instance(); 00029 return $o_hash->CheckPassword($source, $hash); 00030 }
Pas3pHash::create_pass3_instance | ( | ) | [protected] |
Return preconfigured instance of PasswordHash.
- Returns:
- PasswordHash03
Reimplemented in Pas3fHash.
Definition at line 18 of file pas3p.hash.php.
Pas3pHash::hash | ( | $ | source | ) |
Create hash.
- Parameters:
-
string $source
- Returns:
- string
Implements IHashAlgorithm.
Definition at line 22 of file pas3p.hash.php.
00022 { 00023 $o_hash = $this->create_pass3_instance(); 00024 return $o_hash->HashPassword($source); 00025 }
The documentation for this class was generated from the following file:
- contributions/usermanagement/behaviour/commands/users/hashes/pas3p.hash.php