Skip to main content
Module

x/simple_utility/src/crypto.ts>cryptoDecrypt

A handy utility collection.
Go to Latest
function cryptoDecrypt
import { cryptoDecrypt } from "https://deno.land/x/simple_utility@v0.1.0/src/crypto.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.