Hmac.digest method | Node.js crypto module | Bun
BuildDocsReferenceGuidesBlogDiscord/
node:crypto/
Hmac/
digestMdigest
Search the reference...
/
BuildDocsReferenceGuidesBlogDiscord/
node:crypto/
Hmac/
digestMdigest
method
crypto.Hmac.digestdigest(): NonSharedBuffer;
Calculates the HMAC digest of all of the data passed using hmac.update(). If encoding is provided a string is returned; otherwise a Buffer is returned;
The Hmac object can not be used again after hmac.digest() has been called. Multiple calls to hmac.digest() will result in an error being thrown.
digest(encoding:
BinaryToTextEncoding): string;
Calculates the HMAC digest of all of the data passed using hmac.update(). If encoding is provided a string is returned; otherwise a Buffer is returned;
The Hmac object can not be used again after hmac.digest() has been called. Multiple calls to hmac.digest() will result in an error being thrown.
@param encoding
The encoding of the return value.
Referenced typestype
BinaryToTextEncoding = 'base64' | 'base64url' | 'hex' | 'binary'
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlog Toolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →