OPENSSL_DIGEST(3) 1 OPENSSL_DIGEST(3)
openssl_digest - Computes a digest
SYNOPSIS
string openssl_digest (string $data, string $method, [bool $raw_output = false])
DESCRIPTION
Computes a digest hash value for the given data using a given method, and returns a raw or binhex encoded string.
Warning
This function is currently not documented; only its argument list is available.
PARAMETERS
o $data
- The data.
o $method
- The digest method.
o $raw_output
- Setting to TRUE will return as raw output data, otherwise the return value is binhex encoded.
RETURN VALUES
Returns the digested hash value on success or FALSE on failure.
ERRORS
/EXCEPTIONS
Emits an E_WARNING level error if an unknown signature algorithm is passed via the $method parameter.
SEE ALSO
openssl_get_md_methods(3).
PHP Documentation Group OPENSSL_DIGEST(3)