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

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

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

Asymmetrically encrypt plainBytes using publicKeyBytes. Function will error if publicKeyBytes is not an RSA public key

Parameters

publicKeyBytes: Uint8Array
plainBytes: Uint8Array