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

x/dtils/devops/deps.ts>dtils.decryptAsymmetricallyUsingBytes

The best unofficial library of utilities for Deno applications
Go to Latest
function dtils.decryptAsymmetricallyUsingBytes
import { dtils } from "https://deno.land/x/dtils@2.2.1/devops/deps.ts";
const { decryptAsymmetricallyUsingBytes } = dtils;

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

Parameters

privateKeyBytes: Uint8Array
encryptedBytes: Uint8Array