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

x/dtils/mod.unstable.ts>decryptAsymmetrically

The best unofficial library of utilities for Deno applications
Go to Latest
function decryptAsymmetrically
import { decryptAsymmetrically } from "https://deno.land/x/dtils@2.4.0/mod.unstable.ts";

Asymmetrically decrypt encryptedBytes using a base64 encoded privateKey. Function will error if privateKey is not an RSA private key

Parameters

privateKey: string
encryptedBytes: Uint8Array

Returns

Promise<Uint8Array>