Skip to main content
Module

x/core/mod.ts>RSA

Some auxiliary functions and classes of deno.
Latest
variable RSA
import { RSA } from "https://deno.land/x/core@0.1.9/mod.ts";

RSA encryption and decryption algorithm: RSA-OAEP encoding: base64

type

{ generateKeyPair(); exportPublicKey(key: CryptoKey); exportPrivateKey(key: CryptoKey); importPublicKey(pem: string); importPrivateKey(pem: string); encrypt(plaintext: string, publicKey: CryptoKey); decrypt(ciphertext: string, privateKey: CryptoKey); }