Skip to main content
Module

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

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

Parameters

privateKeyBytes: Uint8Array
encryptedBytes: Uint8Array