<?php
/**
* Hash algoritm interface definition.
* This interface will set the functions that a hash algorithm must implement.
*
* @author Marius Zadara <marius@zadara.org>
* @category org.zadara.marius.messagedigester.interfaces
* @copyright (C) 2008, Marius Zadara <marius@zadara.org>
* @license GNU GPL
* @package org.zadara.marius.messagedigester
* @access public
*/
interface IHashAlgorithm
{
/**
* Hash function.
* With the help of this function, the algorithm will
* calculate the hash of a string
*
* @param string $string The string to hash by the algorithm
* @param boolean $raw_output Raw output?
* @access public
* @static
*/
public static function hash($string, $raw_output = false);
}
?>
|