2.0.1 • Published 4 years ago

bitcluster v2.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

Bitcluster

Bitcluster is a simple wrapper for Crypto-JS that makes client-side encryption painless, and validation easier.

Install:

npm install --save bitcluster

To encrypt:

// using node

var Bitcluster = require('bitcluster')

// or React:

import Bitcluster from 'bitcluster';

var obj = {
  data: 'whatever data you'd like to encrypt',
  key: 'your super secret password'
}

var res = Bitcluster.encrypt(obj)

// returns:
{
  h1: 'Hash 1',
  h2: 'Hash 2',
  hash: 'The hash used to verify contents when decrypting'
}

To decrypt:

// using node

var Bitcluster = require('bitcluster')

// or React:

import Bitcluster from 'bitcluster';

var obj = {
  h1: 'Hash 1',
  h2: 'Hash 2',
  hash: 'The hash used to verify contents when decrypting',
  pass: 'super secret password'
}

var res = Bitcluster.decrypt(obj)

// returns:
{
  data: 'whatever you encrypted',
  status: 'OK'
}

It's as simple as that: completely client-side encryption.

2.0.1

4 years ago

2.0.0

4 years ago

1.2.1

5 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago