Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/node
/ secretKey
Function
secretKey
test/parallel/test-crypto-key-objects-to-crypto-key.js:56–58 ·
view source on GitHub ↗
(length)
Source
from the content-addressed store, hash-verified
54
}
55
56
function
secretKey(length) {
57
return
createSecretKey(randomBytes(length >> 3));
58
}
59
60
function
vector(
61
keyObject,
Callers
4
symmetricVectors
Function · 0.85
chacha20Poly1305Vectors
Function · 0.85
hmacVectors
Function · 0.85
kmacVectors
Function · 0.85
Calls
2
createSecretKey
Function · 0.85
randomBytes
Function · 0.85
Tested by
no test coverage detected