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

x/iron/dist/index.d.ts>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.2.0/dist/index.d.ts";

seal() method options.

Type Parameters

optional
Algorithm extends _Algorithm = _Algorithm

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.