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

x/simple_utility/mod.ts>cryptoEncrypt

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

Encrypt byte array using AES-GCM with 256 bits key, 128 bits tag and 96 bits IV. The IV is prepended to the byte array.

Parameters

public/private key pair, each in byte array.

data: Uint8Array

byte array.