@jcayzac/utils-digest
v0.1.11
Published
SHA-256 digest of an Uint8Array or Buffer, as a hexadecimal string.
Downloads
11
Maintainers
Readme
@jcayzac/utils-digest
SHA-256 digest as a hexadecimal string.
Installation
# pnpm
pnpm add @jcayzac/utils-digest
# bun
bunx add @jcayzac/utils-digest
# npm
npx add @jcayzac/utils-digest
# yarn
yarn add @jcayzac/utils-digest
# deno
deno add npm:@jcayzac/utils-digest
Usage
import digest from '@jcayzac/utils-digest'
const buffer = new TextEncoder().encode('Hello, World!')
console.log(await digest(buffer))
// dffd6021bb2bd5b0af676290809ec3a53191dd81c7f70a4b28688a362182986f
Like it? Buy me a coffee!
If you like anything here, consider buying me a coffee using one of the following platforms: