SHA256 with Node crypto
JavaScriptCompute a SHA256 hex digest with the node:crypto stdlib.
import { createHash } from 'node:crypto';
const digest = createHash('sha256')
.update('hello world')
.digest('hex');
console.log(digest);
Compute a SHA256 hex digest with the node:crypto stdlib.
import { createHash } from 'node:crypto';
const digest = createHash('sha256')
.update('hello world')
.digest('hex');
console.log(digest);