Location: PHPKode > scripts > Message Digest > message-digest/_interfaces/IHashAlgorithm.intf.php
<?php


/**
 * Hash algoritm interface definition. 
 * This interface will set the functions that a hash algorithm must implement.
 *  
 * @author Marius Zadara <hide@address.com>
 * @category org.zadara.marius.messagedigester.interfaces 
 * @copyright (C) 2008, Marius Zadara <hide@address.com>
 * @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);	
}


?>
Return current item: Message Digest