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

x/dtils/lib/encryption.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/lib/encryption.ts";

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

Parameters

privateKeyBytes: Uint8Array
encryptedBytes: Uint8Array