Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
23
function
B2H(b)
24
{
25
return
(BigInt.fromArrayBuffer(b)).toString(16);
26
}
27
28
// sample WebSocket handshake hash
29
let
sha1 =
new
Digest(
"SHA1"
);
Callers
1
main.js
File · 0.70
Calls
2
fromArrayBuffer
Method · 0.65
toString
Method · 0.45
Tested by
no test coverage detected