Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/iron/src/types.ts>SealOptions

A cryptographic utility for sealing a JSON object using symmetric key encryption with message integrity verification.
Latest
interface SealOptions
import { type SealOptions } from "https://deno.land/x/iron@v1.2.1/src/types.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<EncryptionAlgorithm>

Encryption step options.

integrity: SealOptionsSub<IntegrityAlgorithm>

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.