Skip to content

Repository files navigation

SHA1 bytestring hashing for JavaScript. See docs.

import{alloc}from'@array-like/alloc';import*asasciifrom'@codec-bytes/ascii';import*asbase16from'@codec-bytes/base16';import{sha1}from'@string-hashing/sha1';conststring='The quick brown fox jumps over the lazy dog';constbytes=ascii.encode(string);constdigest=sha1(bytes,bytes.length*8,alloc(20));digest;// [0x2f, 0xd4, 0xe1, 0xc6, 0x7a, 0x2d, 0x28, 0xfc, 0xed, 0x84, ...]base16.decode(digest);// '2FD4E1C67A2D28FCED849EE1BB76E7391B93EB12'

LicenseVersionTestsDependenciesGitHub issuesDownloads

Code issuesCode maintainabilityCode coverage (cov)Code technical debtDocumentationPackage size

About

❓ SHA1 bytestring hashing for JavaScript

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages