Пример #1
0
 /**
  * Performs the hashing of a value using a hashing algorithm
  * @param string $value The value to be hashed
  * @param IHash $method The IHash object that represents the hash algorithm
  * <br>All hashing methods implements de IHash interface
  * @return string Generated hash
  */
 public static function generateHash($value, $method)
 {
     return $method->hashValue($value);
 }