Skip to main content
Module

x/dtils/encryption.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/encryption.ts";

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

Parameters

publicKeyBytes: Uint8Array
plainBytes: Uint8Array