Run the hash over the given data
CryptoHashInterface.hash method | Bun module | Bun BuildDocsReferenceGuidesBlogDiscord/Bun/CryptoHashInterface/hashMhash BuildDocsReferenceGuidesBlogDiscord /Bun/CryptoHashInterface/hashMhash CryptoHashInterface.hashstatic hash(input: BlobOrStringOrBuffer,hashInto?: TypedArrayArrayBufferLike>): TypedArray; @param input @param hashInto static hash(input: BlobOrStringOrBuffer,encoding: DigestEncoding): string; @param input @param encoding Referenced typestype BlobOrStringOrBuffer = string | NodeJS.TypedArray | ArrayBufferLike | Blobtype DigestEncoding = 'utf8' | 'ucs2' | 'utf16le' | 'latin1' | 'ascii' | 'base64' | 'base64url' | 'hex'
Search the reference...
/
method
string, Uint8Array, or ArrayBuffer to hash. Uint8Array or ArrayBuffer is faster.
TypedArray to write the hash into. Faster than creating a new one each time
Run the hash over the given data
string, Uint8Array, or ArrayBuffer to hash. Uint8Array or ArrayBuffer is faster.
DigestEncoding to return the hash in
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →CryptoHashInterface.hash method | Bun module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for method bun.CryptoHashInterface.hash | Bun