Class Hash

Summary

Fully Qualified Name: Zend\Crypt\Hash

Description

Methods

Name Description Defined By
clearLastAlgorithmCache() Clear the cache of last algorithm supported Hash
compute() Hash
getOutputSize() Get the output size according to the hash algorithm and the output format Hash
getSupportedAlgorithms() Get the supported algorithm Hash
isSupported() Is the hash algorithm supported? Hash

Method Details

clearLastAlgorithmCache()

Clear the cache of last algorithm supported

Returns:

compute()

Parameter Name Type Description
$hash string
$data string
$output bool

Returns: string

getOutputSize()

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

Parameter Name Type Description
$hash string
$output bool

Returns: int

getSupportedAlgorithms()

Get the supported algorithm

Returns: array

isSupported()

Is the hash algorithm supported?

Parameter Name Type Description
$algorithm string

Returns: bool

Top