endecrypt-nhanngo

0.1.3 • Public • Published

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);

Readme

Keywords

none

Package Sidebar

Install

npm i endecrypt-nhanngo

Weekly Downloads

0

Version

0.1.3

License

ISC

Unpacked Size

1.9 kB

Total Files

4

Last publish

Collaborators

  • nhanngo