Back to Jose

Interface: GenerateSecretOptions

docs/key/generate_secret/interfaces/GenerateSecretOptions.md

6.2.2796 B
Original Source

Interface: GenerateSecretOptions

šŸ’— Help the project

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.

Secret generation function options.

Properties

extractable?

• optional extractable: boolean

The value to use as SubtleCrypto.generateKey extractable argument. Default is false.

[!NOTE]
Because A128CBC-HS256, A192CBC-HS384, and A256CBC-HS512 secrets cannot be represented as CryptoKey this option has no effect for them.