An async wrapper for the Iron encryption package.
With Yarn:
yarn install iron-async
Or from NPM:
npm install iron-async --save
Import iron-async via ES6 default import:
import * as IronAsync from "iron-async";
Or via Node's require:
const IronAsync = require("iron-async");
seal(value: any, password: string, defaults?)
import { seal } from "iron-async";
const sealedToken: string = await seal({
hello: "world"
}, password);
unseal(token: string, password: string, defaults?)
import { unseal } from "iron-async";
const unsealedObject = await unseal(sealedToken, password);