iron-async
v1.0.2
Published
An async wrapper for the Iron encryption package.
Downloads
3
Readme
iron-async
An async wrapper for the Iron encryption package.
Installation
With Yarn:
yarn install iron-async
Or from NPM:
npm install iron-async --save
Importing
Import iron-async via ES6 default import:
import * as IronAsync from "iron-async";
Or via Node's require:
const IronAsync = require("iron-async");
Examples
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);