jstrong

0.0.2 • Public • Published

JSTRONG

Addition to siphr explicitly for JSON objects.

Possible use cases:

  • web tokens
  • application level encryption before persisting to database

Installation

Using npm:

$ npm install --save jstrong

Usage

const jstrong = require('jstrong')(MY_SECRET_KEY);
 
const user = {
  id: 1, username: 'Homer Simpson', home_town: 'Springfield',
};
 
const strongUser = jstrong.stringify(user); // => '{"sFHg6oX9AMI7ejBsw==":"v7Shp9Tylui==",...}'
 
const plainUser = jstrong.parse(strongUser); // => { id: 1, ... }

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i jstrong

Weekly Downloads

0

Version

0.0.2

License

ISC

Last publish

Collaborators

  • davidhunt