Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including iron-webcrypto with all npm packages installed. Try it out:

const { webcrypto } = require('node:crypto') const Iron = require('iron-webcrypto') const obj = { a: 1, b: 2, c: [3, 4, 5], d: { e: 'f' } } const password = 'a_password_having_at_least_32_chars' const sealed = await Iron.seal(webcrypto, obj, password, Iron.defaults) console.log({ sealed }) const unsealed = await Iron.unseal(webcrypto, sealed, password, Iron.defaults) console.log({ unsealed })

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

iron-webcrypto v1.0.0

a cryptographic utility for sealing-unsealing a JSON object using symmetric key encryption with message integrity verification

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free