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

x/dtils/encryption.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.3.1/encryption.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>