Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/simple_utility/src/crypto.ts>cryptoEncrypt

A handy utility collection.
Go to Latest
function cryptoEncrypt
import { cryptoEncrypt } from "https://deno.land/x/simple_utility@v0.2.2/src/crypto.ts";

Encrypt byte array using AES, the IV is prepended to the byte array.

Parameters

public/private key pair, each in byte array.

data: Uint8Array

byte array.