1.0.2 • Published 7 years ago

iron-async v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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);