Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/faster/vendor/jose/key/generate_key_pair.ts>GenerateKeyPairOptions

A fast and optimized middleware server with an absurdly small amount of code (300 lines) built on top of Deno's native HTTP APIs with no dependencies. It also has a collection of useful middlewares: log file, serve static, CORS, session, rate limit, token, body parsers, redirect, proxy and handle upload. Fully compatible with Deno Deploy.
Latest
interface GenerateKeyPairOptions
import { type GenerateKeyPairOptions } from "https://deno.land/x/faster@v11.7/vendor/jose/key/generate_key_pair.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

(Only effective in Web Crypto API runtimes) The value to use as !SubtleCrypto.generateKey extractable argument. Default is false.