Skip to content

Repository files navigation

SHA2 bytestring hashing for JavaScript. See docs.

import{alloc}from'@array-like/alloc';import*asasciifrom'@codec-bytes/ascii';import*asbase16from'@codec-bytes/base16';import{sha512}from'@string-hashing/sha2';conststring='The quick brown fox jumps over the lazy dog';constbytes=ascii.encode(string);constdigest=sha512(bytes,bytes.length*8,alloc(64));digest;// [0x07, 0xe5, 0x47, 0xd9, 0x58, 0x6f, 0x6a, 0x73, 0xf7, 0x3f, ...]base16.decode(digest);// '07E547D9586F6A73F73FBAC0435ED76951218FB7D0C8D788A309D785436B...'

LicenseVersionTestsDependenciesGitHub issuesDownloads

Code issuesCode maintainabilityCode coverage (cov)Code technical debtDocumentationPackage size

About

❓ SHA2 bytestring hashing for JavaScript

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages