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

x/faster/vendor/jose/key/import.ts

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
import * as faster from "https://deno.land/x/faster@v11.7/vendor/jose/key/import.ts";

Functions

Imports a JWK to a runtime-specific key representation (KeyLike). Either the JWK "alg" (Algorithm) Parameter, or the optional "alg" argument, must be present.

Imports a PEM-encoded PKCS#8 string as a runtime-specific private key representation (!KeyObject or !CryptoKey).

Imports a PEM-encoded SPKI string as a runtime-specific public key representation (!KeyObject or !CryptoKey).

Imports the SPKI from an X.509 string certificate as a runtime-specific public key representation (!KeyObject or !CryptoKey).