Skip to main content
Module

x/jose/index.ts>GenerateKeyPairOptions

"JSON Web Almost Everything" - JWA, JWS, JWE, JWT, JWK, JWKS with no dependencies using runtime's native crypto in Node.js, Browser, Cloudflare Workers, Electron, and Deno.
Extremely Popular
Go to Latest
interface GenerateKeyPairOptions
import { type GenerateKeyPairOptions } from "https://deno.land/x/jose@v4.9.2/index.ts";

Properties

optional
crv: string

The EC "crv" (Curve) or OKP "crv" (Subtype of Key Pair) value to generate. The curve must be both supported on the runtime as well as applicable for the given JWA algorithm identifier.

optional
modulusLength: number

A hint for RSA algorithms to generate an RSA key of a given modulusLength (Key size in bits). JOSE requires 2048 bits or larger. Default is 2048.

optional
extractable: boolean

(Web Cryptography API specific) The value to use as SubtleCrypto.generateKey() extractable argument. Default is false.