IHashAlgorithm Interface Reference
[Usermanagement]
Interface for Hash algorithm implementations. More...
Inheritance diagram for
IHashAlgorithm:
Public Member Functions |
|
check ($source, $hash) | |
Validate if given hash matches source.
|
|
hash ($source) | |
Create hash. |
Detailed Description
Interface for Hash algorithm implementations.
- Since:
- 0.5.1
Hash algorithzm implementations must be placed beneath /behaviour/comands/users/hashes/ and named [algo].hash.php, where [algo] is the name of the algorithm. The class itself is named [Algo]Hash.
For example the md5 algorithm's file is named /behaviour/commands/users/hashes/md5.hash.php and contains the class Md5Hash.
- Attention:
- Algorithm names are limited to 5 characters!
Definition at line 19 of file ihash.cls.php.
Member Function Documentation
IHashAlgorithm::check | ( | $ | source, | |
$ | hash | |||
) |
IHashAlgorithm::hash | ( | $ | source | ) |
The documentation for this interface was generated from the following file:
- contributions/usermanagement/lib/interfaces/ihash.cls.php