Pas2pHash Class Reference
[Usermanagement]
Calculates a hash using PHPPass 0.2 in portable mode. More...
Inheritance diagram for Pas2pHash:
Public Member Functions |
|
check ($source, $hash) | |
Validate if given hash matches source.
|
|
hash ($source) | |
Create hash. |
|
Protected Member Functions |
|
create_pass2_instance () | |
Return preconfigured instance of
PasswordHash. |
Detailed Description
Calculates a hash using PHPPass 0.2 in portable mode.
- Since:
- 0.5.1
Definition at line 12 of file pas2p.hash.php.
Member Function Documentation
Pas2pHash::check | ( | $ | source, | |
$ | hash | |||
) |
Validate if given hash matches source.
- Parameters:
-
string $source string $hash
- Returns:
- bool
Implements IHashAlgorithm.
Definition at line 27 of file pas2p.hash.php.
00027 { 00028 $o_hash = $this->create_pass2_instance(); 00029 return $o_hash->CheckPassword($source, $hash); 00030 }
Pas2pHash::create_pass2_instance | ( | ) | [protected] |
Return preconfigured instance of PasswordHash.
- Returns:
- PasswordHash02
Reimplemented in Pas2fHash.
Definition at line 18 of file pas2p.hash.php.
Pas2pHash::hash | ( | $ | source | ) |
Create hash.
- Parameters:
-
string $source
- Returns:
- string
Implements IHashAlgorithm.
Definition at line 22 of file pas2p.hash.php.
00022 { 00023 $o_hash = $this->create_pass2_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/pas2p.hash.php