.

Md5Hash Class Reference
[Usermanagement]

Calculates an MD5 hash. More...

Inheritance diagram for Md5Hash:
IHashAlgorithm

List of all members.

Public Member Functions

  check ($source, $hash)
  Validate if given hash matches source.
  hash ($source)
  Create hash.

Detailed Description

Calculates an MD5 hash.

Since:
0.5.1
Author:
Gerd Riesselmann

Definition at line 10 of file md5.hash.php.


Member Function Documentation

Md5Hash::check ( source,
hash  
)

Validate if given hash matches source.

Parameters:
string  $source
string  $hash
Returns:
bool

Implements IHashAlgorithm.

Definition at line 15 of file md5.hash.php.

00015                                               {
00016                 return $hash == $this->hash($source);
00017         }
Md5Hash::hash ( source  ) 

Create hash.

Parameters:
string  $source
Returns:
string

Implements IHashAlgorithm.

Definition at line 11 of file md5.hash.php.

00011                                       {
00012                 return md5($source);
00013         }

The documentation for this class was generated from the following file:
  • contributions/usermanagement/behaviour/commands/users/hashes/md5.hash.php