3.0.0 • Published 6 years ago

the-seal v3.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

the-seal

Build Status npm Version JS Standard

Encrypt json object with master password

Installation

$ npm install the-seal --save

Usage

'use strict'

const theSeal = require('the-seal')

async function tryExample () {
  const SECRET_PASSWORD = 'xxxxxxxxxxxxxxxxx'
  const {seal, verify} = theSeal(SECRET_PASSWORD)

  const values = {name: 'Bess', age: 28}

  const proof = seal(values)
  console.log(verify(proof, values)) // -> true

  values.age -= 4
  console.log(verify(proof, values)) // -> false because value modified
}

tryExample().catch((err) => console.error(err))

API Guide

License

This software is released under the MIT License.

Links

3.0.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.1.0

7 years ago

1.0.0

7 years ago