Skip to main content
Module

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