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

x/hpke/mod.ts>AeadEncryptionContext

A Hybrid Public Key Encryption (HPKE) module built on top of Web Cryptography API.
Latest
interface AeadEncryptionContext
import { type AeadEncryptionContext } from "https://deno.land/x/hpke@1.2.9/mod.ts";

The AEAD encryption context interface.

Methods

seal(
iv: ArrayBuffer,
data: ArrayBuffer,
aad: ArrayBuffer,
): Promise<ArrayBuffer>

Encrypts data with an initialization vector and additional authenticated data.

open(
iv: ArrayBuffer,
data: ArrayBuffer,
aad: ArrayBuffer,
): Promise<ArrayBuffer>

Decrypts data with an initialization vector and additional authenticated data.