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

x/dtils/devops/deps.ts>dtils.decryptAsymmetrically

The best unofficial library of utilities for Deno applications
Go to Latest
function dtils.decryptAsymmetrically
import { dtils } from "https://deno.land/x/dtils@2.2.0/devops/deps.ts";
const { decryptAsymmetrically } = dtils;

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

Parameters

privateKey: string
encryptedBytes: Uint8Array