Skip to content

An async wrapper for the Iron encryption package.

License

Notifications You must be signed in to change notification settings

nozzlegear/iron-async

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An async wrapper for the Iron encryption package.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published