.

IHashAlgorithm Interface Reference
[Usermanagement]

Interface for Hash algorithm implementations. More...

Inheritance diagram for IHashAlgorithm:
Md5Hash Pas2pHash Pas3pHash Sha1Hash Pas2fHash Pas3fHash

List of all members.

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!
Author:
Gerd Riesselmann

Definition at line 19 of file ihash.cls.php.


Member Function Documentation

IHashAlgorithm::check ( source,
hash  
)

Validate if given hash matches source.

Parameters:
string  $source
string  $hash
Returns:
bool

Implemented in Md5Hash, Pas2pHash, Pas3pHash, and Sha1Hash.

IHashAlgorithm::hash ( source  ) 

Create hash.

Parameters:
string  $source
Returns:
string

Implemented in Md5Hash, Pas2pHash, Pas3pHash, and Sha1Hash.


The documentation for this interface was generated from the following file: