Skip to main content
Module

x/iron/dist/index.d.cts>SealOptionsSub

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

seal() method options.

Type Parameters

optional
Algorithm extends string = "aes-128-ctr" | "aes-256-cbc" | "sha256"

Properties

saltBits: number

The length of the salt (random buffer used to ensure that two identical objects will generate a different encrypted result). Defaults to 256.

algorithm: Algorithm

The algorithm used. Defaults to 'aes-256-cbc' for encryption and 'sha256' for integrity.

iterations: number

The number of iterations used to derive a key from the password. Defaults to 1.

minPasswordlength: number

Minimum password size. Defaults to 32.