Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
function cryptoDecrypt
import { cryptoDecrypt } from "https://deno.land/x/simple_utility@v0.0.10/mod.compatible.ts";

Decrypt encrypted byte array using AES-GCM with 256 bits key 128 bits tag and 96 bits IV. Read the IV prepended to the byte array.

Parameters

public/private key pair, each in byte array.

data: Uint8Array

encrypted byte array.