Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/god_crypto/rsa.ts>RSA.importKey

Pure Javascript/Typescript Crypto Implementation for Deno. AES, RSA, HMAC, and TOTP
Very Popular
Latest
method RSA.importKey
import { RSA } from "https://deno.land/x/god_crypto@v1.4.11/rsa.ts";

Convert key in an external, portable format to our internal key format

Parameters

key: string | JSONWebKey

String or key containing the key in the given format.

optional
format: "auto" | "jwk" | "pem" = [UNSUPPORTED]

is a string describing the data format of the key to import. Choose "auto", it will try to guess the correct format of the given key