MCPcopy Create free account
hub / github.com/node-modules/utility / createHashWithSHA512

Function createHashWithSHA512

benchmark/sha512.cjs:8–12  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

6const suite = new Benchmark.Suite();
7
8function createHashWithSHA512(s) {
9 const sum = crypto.createHash('sha512');
10 sum.update(s);
11 return sum.digest('hex');
12}
13
14console.log("utils.sha512({foo: 'bar', bar: 'foo', v: [1, 2, 3]})", utils.sha512({ foo: 'bar', bar: 'foo', v: [ 1, 2, 3 ] }));
15console.log("utils.sha512(JSON.stringify({foo: 'bar', bar: 'foo', v: [1, 2, 3]}))",

Callers 1

sha512.cjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…