GitShow/sindresorhus/crypto-hash
sindresorhus

crypto-hash

Tiny hashing module that uses the native crypto API in Node.js and the browser

by sindresorhus
browsercryptohash-functionshashingisomorphicnodejsnpm-packagesha256
Star on GitHubForknpm

JavaScript

645 stars27 forks9 contributorsActive · 1mo agoSince 2018v4.0.1MIT

Meet the team

See all 9 on GitHub →
sindresorhus
sindresorhus34 contributions
Richienb
Richienb2 contributions
stroncium
stroncium2 contributions
bjornstar
bjornstar1 contribution
davixyz
davixyz1 contribution
BendingBender
BendingBender1 contribution
derhuerst
derhuerst1 contribution
mwanago
mwanago1 contribution

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 1 commit

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
tmair
Starting a new Worker will respect NODE_OPTIONS environment variableClosedIssue

We are using on node and instrument our code with opentelemetry through the environment variable (e.g. ). When a new Worker is created it respects that environment variable. Since we start a metrics server in the instrumentation, we try to instantiate a new server on the same port and of course that fails, because the server is already running on that port. Is it possible to work around that issue? I am not sure that not passing any environment variables into the worker is the correct thing to do, but since the code executed on the worker does not contain any dependency on such a variable it might be best to not inherit the parent process environment.

tmair · 8mo ago
fabiospampinato
Improve bufferToHex performanceClosedIssue

The method mentioned here is a good 10x faster compared to the one currently being used by this library. That's the code: Uppercase letters would need to be converted to lowercase though. And a Uint8Array needs to be passed to the function rather than an ArrayBuffer.

fabiospampinato · 11mo ago
andraaspar
Inconsistent Buffer SHA1 in Node.jsClosedIssue

I have a like this: (LF. No LF at the end.) And I have the following script: When I run it 3 times I get: The output of seems to constantly change, and never match the expected result.

andraaspar · 11mo ago
Structured data for AI agents

Repository: sindresorhus/crypto-hash. Description: Tiny hashing module that uses the native crypto API in Node.js and the browser Stars: 645, Forks: 27. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Topics: browser, crypto, hash-functions, hashing, isomorphic, nodejs, npm-package, sha256. Latest release: v4.0.1 (8mo ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 85%. Top contributors: sindresorhus, Richienb, stroncium, bjornstar, davixyz, BendingBender, derhuerst, mwanago, chocolateboy.

·@ofershap

Replace github.com with gitshow.dev