Calculate the hash/digest of a message using the specified algorithm.
The hash/digest algorithm to use.
The message to hash, can be a Buffer or a string.
Buffer
string
A Buffer containing the hash/digest of the message.
Calculate the hash/digest of a message using the specified algorithm.