Back to Jose

key/generate_secret

docs/key/generate_secret/README.md

6.2.12908 B
Original Source

key/generate_secret

Symmetric key generation

Interfaces

InterfaceDescription
GenerateSecretOptionsSecret generation options.

Type Aliases

Type AliasDescription
GeneratedSecretMaps a JWA algorithm identifier to the value returned by generateSecret. AES-CBC-HMAC algorithms return Uint8Array; other supported algorithms return CryptoKey. When the algorithm is not statically known, the result is their union.

Functions

FunctionDescription
generateSecretGenerates a symmetric secret key for a given JWA algorithm identifier.