Login   Register  
PHP Classes
elePHPant
Icontem

File: _interfaces/IHashAlgorithm.intf.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Marius Zadara  >  Message Digest  >  _interfaces/IHashAlgorithm.intf.php  
File: _interfaces/IHashAlgorithm.intf.php
Role: Class source
Content type: text/plain
Description: Hash algorithm interface
Class: Message Digest
Generate message digests with hashing algorithms
 

Contents

Class file image Download
<?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);    
}


?>