15.4.1 • Published 5 years ago

@the-/seal v15.4.1

Weekly downloads
135
License
MIT
Repository
github
Last release
5 years ago

@the-/seal

npm Version

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 = { age: 28, name: 'Bess' }

  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

function

class

License

This software is released under the MIT License.

Links

15.4.1

5 years ago

15.2.0

5 years ago

15.1.4

5 years ago

15.1.3

5 years ago

15.1.2

5 years ago

15.1.0

5 years ago

15.0.3

5 years ago