Skip to main content
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.4.0/mod.ts";

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

Parameters

privateKeyBytes: Uint8Array
encryptedBytes: Uint8Array

Returns

Promise<Uint8Array>