Hash
class Hash (View source)
Class providing hash algorithms
Methods
static string
getAlgorithms(bool $aliases = false, string $prefix = null)
Returns hash algorithms
static bool
hasAlgorithm(string $algorithm)
Finds out whether algorithm exists
static
__callStatic(string $name, array $arguments)
Hash magic method for calling static methods
__construct(string $algorithm)
Hash constructor
string
getAlgorithmName()
Returns hash algorithm string
null
update(string $data)
Updates hash
string
digest()
Return hash digest in raw foramt
string
hexdigest()
Return hash digest in hex format
int
getBlockSize()
Returns hash block size
int
getSize()
Returns hash size
Details
static string
getAlgorithms(bool $aliases = false, string $prefix = null)
Returns hash algorithms
static bool
hasAlgorithm(string $algorithm)
Finds out whether algorithm exists
static
__callStatic(string $name, array $arguments)
Hash magic method for calling static methods
__construct(string $algorithm)
Hash constructor
string
getAlgorithmName()
Returns hash algorithm string
null
update(string $data)
Updates hash
string
digest()
Return hash digest in raw foramt
string
hexdigest()
Return hash digest in hex format
int
getBlockSize()
Returns hash block size
int
getSize()
Returns hash size