{"library":"iron-webcrypto","type":"library","category":null,"description":"iron-webcrypto is a JavaScript/TypeScript library providing a WebCrypto API-based implementation of `@hapi/iron`. It enables sealing (encrypting and signing) and unsealing JSON-like data using symmetric key encryption with built-in message integrity verification, producing compact, URL-safe string tokens. The current stable version is 2.0.0, which notably dropped support for Node.js versions older than 20 and transitioned to an ESM-only module. It differentiates itself by relying solely on standard WebCrypto APIs, making it highly portable across modern JavaScript runtimes like Node.js v20+, Deno, Bun, and Cloudflare Workers, without depending on Node.js-specific `node:crypto` or `node:buffer` modules. The library's API is designed to be compatible with `@hapi/iron`, facilitating migrations or consistent usage patterns across projects. It ships with full TypeScript type definitions and is primarily intended for server-side or worker environments due to security implications of client-side secret exposure, which could expose encryption secrets.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript","authentication","data integrity","encryption","webcrypto","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install iron-webcrypto","imports":["import * as Iron from 'iron-webcrypto'","import { seal, unseal } from 'iron-webcrypto'","import { defaults } from 'iron-webcrypto'"]},{"cmd":"yarn add iron-webcrypto","imports":[]},{"cmd":"pnpm add iron-webcrypto","imports":[]}],"homepage":null,"github":"https://github.com/brc-dd/iron-webcrypto","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/iron-webcrypto","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/iron-webcrypto/compatibility"}}