import { webcrypto } from "crypto"
subtle
.generateKey(
{
name: "HMAC",
hash: "SHA-256",
length: 512,
},
true,
["sign", "verify"]
)
.then((key) => {
subtle.exportKey("jwk", key).then((exported) => console.log(exported.k))
})