This package has been deprecated

Author message:

move to @the-/seal ( https://github.com/the-labo/the/tree/master/packages/seal#readme )

the-seal

3.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i the-seal

Weekly Downloads

1

Version

3.0.0

License

MIT

Unpacked Size

36.4 kB

Total Files

34

Last publish

Collaborators

  • okunishinishi