sindresorhus

crypto-hash

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

by sindresorhus

JavaScript

JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

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

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 · 10mo ago
fabiospampinato

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 · 1y ago
andraaspar

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 · 1y 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 (10mo ago). Open PRs: 0, open issues: 0. Last activity: 2mo ago. Community health: 85%. Top contributors: sindresorhus, Richienb, stroncium, bjornstar, davixyz, BendingBender, derhuerst, mwanago, chocolateboy.