import { generateSecret } from "https://deno.land/x/jose@v5.9.6/key/generate_secret.ts";
Generates a symmetric secret key for a given JWA algorithm identifier.
Note: Under Web Crypto API runtime the secret key is generated with extractable
set to false
by default.
This function is exported (as a named export) from the main 'jose'
module entry point as well
as from its subpath export 'jose/generate/secret'
.
Parameters
optional
options: GenerateSecretOptionsAdditional options passed down to the secret generation.
Returns
Promise<KeyLikeType | Uint8Array>