Class HashMethod

Description

Defines an abstract interface for hashing methods

Implementations of this provide a hashing algorithm maybe including additional things like salts.

  • abstract:

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


	
			
Direct descendents
Class Description
HashMethodSSHA The SHA1 salted Hashing algorithm module for our hashing subsystem
HashMethodSHA1 The SHA1 Hashing algorithm module for our hashing subsystem
HashMethodMD5 The MD5 Hashing algorithm module for our hashing subsystem
Method Summary
string genhash (string $value)
string getHashID ()
boolean verify (string $hash, string $value)
Methods
genhash (line 44)

Generates a hashed value

  • access: public
  • abstract:
string genhash (string $value)
  • string $value: Some value to hash
getHashID (line 69)

Returns a short identifier for the used hash algorithm

  • access: public
  • abstract:
string getHashID ()

Redefined in descendants as:
verify (line 59)

Verifies a value based on a given hash

This default implementation simply checks the value by hashing it and comparing it to the given hash.

One case you might need to override this function is when using a salted hash.

  • access: public
boolean verify (string $hash, string $value)
  • string $hash: Hash
  • string $value: Value

Redefined in descendants as:

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