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

x/dtils/mod.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.2.1/mod.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>