method Hash.prototype.digest
Overload 1
#Hash.prototype.digest(): BufferCalculates the digest of all of the data passed to be hashed (using the hash.update() method).
If encoding is provided a string will be returned; otherwise
a Buffer is returned.
The Hash object can not be used again after hash.digest() method has been
called. Multiple calls will cause an error to be thrown.
Return Type #
Buffer Overload 2
#Hash.prototype.digest(encoding: BinaryToTextEncoding): stringParameters #
#encoding: BinaryToTextEncoding Return Type #
string