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

x/dtils/mod.ts>decryptAsymmetricallyUsingBytes

The best unofficial library of utilities for Deno applications
Go to Latest
function decryptAsymmetricallyUsingBytes
import { decryptAsymmetricallyUsingBytes } from "https://deno.land/x/dtils@2.0.0-beta.1/mod.ts";

Asymmetrically decrypt encryptedBytes using privateKeyBytes. Function will error if privateKeyBytes is not an RSA public key

Parameters

privateKeyBytes: Uint8Array
encryptedBytes: Uint8Array