Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

// crypto.mjs import { createHash } from 'node:crypto'; import { readFile } from 'node:fs/promises'; const hasher = createHash('sha1'); hasher.setEncoding('hex'); // ensure you have a `package.json` file for this test! hasher.write(await readFile('package.json')); hasher.end(); const fileHash = hasher.read(); // run with `node crypto.mjs`

Notifications You must be signed in to change notification settings

cyberwarfare-com/javascript0.2

 
 

About

// crypto.mjs import { createHash } from 'node:crypto'; import { readFile } from 'node:fs/promises'; const hasher = createHash('sha1'); hasher.setEncoding('hex'); // ensure you have a `package.json` file for this test! hasher.write(await readFile('package.json')); hasher.end(); const fileHash = hasher.read(); // run with `node crypto.mjs`

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.0%
  • HTML 3.4%
  • CSS 1.6%