MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / B2H

Function B2H

examples/crypt/cryptdigest/main.js:23–26  ·  view source on GitHub ↗
(b)

Source from the content-addressed store, hash-verified

21}
22
23function B2H(b)
24{
25 return (BigInt.fromArrayBuffer(b)).toString(16);
26}
27
28// sample WebSocket handshake hash
29let sha1 = new Digest("SHA1");

Callers 1

main.jsFile · 0.70

Calls 2

fromArrayBufferMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected