Skip to main content
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.6.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>