PHP Classes

File: _interfaces/IHashAlgorithm.intf.php

Recommend this page to a friend!
  Classes of Marius Zadara   Message Digest   _interfaces/IHashAlgorithm.intf.php   Download  
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
Author: By
Last change:
Date: 16 years ago
Size: 773 bytes
 

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);
}


?>