Skip to main content
Module

x/dtils/mod.ts>encryptAsymmetricallyUsingBytes

The best unofficial library of utilities for Deno applications
Go to Latest
function encryptAsymmetricallyUsingBytes
import { encryptAsymmetricallyUsingBytes } from "https://deno.land/x/dtils@2.0.0-beta.2/mod.ts";

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

Parameters

publicKeyBytes: Uint8Array
plainBytes: Uint8Array