Skip to main content
Module

x/iron/mod.ts>SealOptions

A cryptographic utility for sealing a JSON object using symmetric key encryption with message integrity verification.
Go to Latest
interface SealOptions
import { type SealOptions } from "https://deno.land/x/iron@v1.1.1/mod.ts";

Options for customizing the key derivation algorithm used to generate encryption and integrity verification keys as well as the algorithms and salt sizes used.

Properties

encryption: SealOptionsSub<"aes-128-ctr" | "aes-256-cbc">

Encryption step options.

integrity: SealOptionsSub<"sha256">

Integrity step options.

ttl: number

Sealed object lifetime in milliseconds where 0 means forever. Defaults to 0.

timestampSkewSec: number

Number of seconds of permitted clock skew for incoming expirations. Defaults to 60 seconds.

localtimeOffsetMsec: number

Local clock time offset, expressed in number of milliseconds (positive or negative). Defaults to 0.