Skip to main content
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.0.12/src/crypto.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.