secure-hash

secure-hash is a built-in function in `C source code'.

(secure-hash ALGORITHM OBJECT &optional START END BINARY)

Return the secure hash of OBJECT, a buffer or string.
ALGORITHM is a symbol specifying the hash to use:
md5, sha1, sha224, sha256, sha384 or sha512.

The two optional arguments START and END are positions specifying for
which part of OBJECT to compute the hash. If nil or omitted, uses the
whole OBJECT.

If BINARY is non-nil, returns a string in binary form.