God Crypto
A pure Javascript/Typescript cryptography implementation.
Usage
import { RSA } from "https://deno.land/x/god_crypto/mod.ts";
const publicKey = RSA.parseKey(Deno.readTextFileSync('./public.pem'));
RSA.encrypt("Hello World", publicKey); // Default OAEP SHA1
RSA.encrypt("Hello World", publicKey, { padding: "oaep", hash: "sha256" });
RSA.encrypt("Hello World", publicKey, { padding: "pkcs1" });
const privateKey = RSA.parseKey(Deno.readTextFileSync('./private.pem'));
RSA.decrypt(ciperText, privateKey);