This module is a drop-in replacement for
@hapi/iron
, written using the
Web Crypto API
that makes it compatible with browser and edge environments.
To use this module, run:
npm add iron-webcrypto
npm remove @hapi/iron
and change:
const Iron = require('@hapi/iron');
// or
import Iron from '@hapi/iron';
to:
const Iron = require('iron-webcrypto');
// or
import * as Iron from 'iron-webcrypto';