Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.2.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

Algorithm used for encryption and decryption.

generateKey() method options.

Algorithm used for integrity verification.

Password secret string or buffer.