0.1.3 • Published 6 years ago

endecrypt-nhanngo v0.1.3

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

Encrypt and decrypt

Encrypt a object to a token string and decrypt token string to object

Installation

npm install endecrypt-nngo

Example

Encrypt an object then decrypt it.

const rsa = require('.endecrypt-nngo');

// test data
const testData = {
    hero: "sniper",
    level: 10
}

let encrypted = rsa.encrypt(testData);
console.log('encrypted: ', encrypted);

let decrypted = rsa.decrypt(encrypted);
console.log('decrypted: ', decrypted);
0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago