Skip to main content
Module

x/iron/mod.ts

A cryptographic utility for sealing a JSON object using symmetric key encryption with message integrity verification.
Latest
import * as iron from "https://deno.land/x/iron@v1.1.1/mod.ts";

Variables

Configuration of each supported algorithm.

Decode a base64url string to a Uint8Array.

Encode a Uint8Array to a base64url string.

Convert a Uint8Array to a string.

Clones the options object.

Decrypts data.

The default encryption and integrity settings.

Encrypts data.

Generates a key from the password.

Calculates a HMAC digest.

MAC normalization format version.

MAC normalization prefix.

Generate cryptographically strong pseudorandom bits.

Serializes, encrypts, and signs objects into an iron protocol string.

Convert a string to a Uint8Array.

Verifies, decrypts, and reconstruct an iron protocol string into an object.

Interfaces

Generated HMAC internal results.

Generated internal key object.

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

seal() method options.

Type Aliases

generateKey() method options.

Password secret string or buffer.