import { generateSecret } from "https://deno.land/x/faster@v12.1/vendor/jose/index.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>