Sha1Hash Class Reference
[Usermanagement]
Calculates an SHA1 hash. More...
Inheritance diagram for Sha1Hash:
Public Member Functions |
|
check ($source, $hash) | |
Validate if given hash matches source.
|
|
hash ($source) | |
Create hash. |
Detailed Description
Calculates an SHA1 hash.
- Since:
- 0.5.1
Definition at line 10 of file sha1.hash.php.
Member Function Documentation
Sha1Hash::check | ( | $ | source, | |
$ | hash | |||
) |
Validate if given hash matches source.
- Parameters:
-
string $source string $hash
- Returns:
- bool
Implements IHashAlgorithm.
Definition at line 15 of file sha1.hash.php.
00015 { 00016 return $hash == $this->hash($source); 00017 }
Sha1Hash::hash | ( | $ | source | ) |
Create hash.
- Parameters:
-
string $source
- Returns:
- string
Implements IHashAlgorithm.
Definition at line 11 of file sha1.hash.php.
The documentation for this class was generated from the following file:
- contributions/usermanagement/behaviour/commands/users/hashes/sha1.hash.php