Zend Framework  3.0
Static Public Member Functions | Public Attributes | Static Protected Attributes | List of all members
Hash Class Reference

Static Public Member Functions

static compute ($hash, $data, $output=self::OUTPUT_STRING)
 
static getOutputSize ($hash, $output=self::OUTPUT_STRING)
 Get the output size according to the hash algorithm and the output format.
 
static getSupportedAlgorithms ()
 Get the supported algorithm.
 
static isSupported ($algorithm)
 Is the hash algorithm supported?
 
static clearLastAlgorithmCache ()
 Clear the cache of last algorithm supported.
 

Public Attributes

const OUTPUT_STRING = false
 
const OUTPUT_BINARY = true
 

Static Protected Attributes

static $lastAlgorithmSupported
 

Member Function Documentation

static clearLastAlgorithmCache ( )
static

Clear the cache of last algorithm supported.

static compute (   $hash,
  $data,
  $output = self::OUTPUT_STRING 
)
static
Parameters
string$hash
string$data
bool$output
Exceptions
Exception\InvalidArgumentException
Returns
string
static getOutputSize (   $hash,
  $output = self::OUTPUT_STRING 
)
static

Get the output size according to the hash algorithm and the output format.

Parameters
string$hash
bool$output
Returns
int
static getSupportedAlgorithms ( )
static

Get the supported algorithm.

Returns
array
static isSupported (   $algorithm)
static

Is the hash algorithm supported?

Parameters
string$algorithm
Returns
bool

Member Data Documentation

$lastAlgorithmSupported
staticprotected
const OUTPUT_BINARY = true
const OUTPUT_STRING = false