Class HashMethodSSHA

Description

The SHA1 salted Hashing algorithm module for our hashing subsystem

This module basically adds a random 8-byte long salt to the value to hash. This prevents attacks based on hashed dictionaries (rainbow tables) as well does not allow the attacker to notice that two passwords are the same.

This implementation is compatible with OpenLDAP's SSHA.

Located in /phpsatk-lib/global/org.eenterphace.sat.crypto.hash.ssha/hash.method.ssha.php (line 39)

HashMethod
   |
   --HashMethodSSHA
Method Summary
string genHash (string $value)
string getHashID ()
void verify (mixed $hash, mixed $value)
Methods
genHash (line 55)

Returns a hashed value

  • access: public
string genHash (string $value)
  • string $value: Value to generate hash of
getHashID (line 45)

Returns the Hash identifier used as prefix

  • access: public
string getHashID ()

Redefinition of:
HashMethod::getHashID()
Returns a short identifier for the used hash algorithm
verify (line 61)
  • access: public
void verify (mixed $hash, mixed $value)

Redefinition of:
HashMethod::verify()
Verifies a value based on a given hash

Inherited Methods

Inherited From HashMethod

HashMethod::genhash()
HashMethod::getHashID()
HashMethod::verify()

Documentation generated on Mon, 21 May 2007 10:35:04 +0200 by phpDocumentor 1.3.0RC5