simple-aes-json

0.0.3 • Public • Published

NPM version Build Status Dependency Status

simple-aes-json

Minimalistic nodejs AES-256 implementation.

Installation

npm install simple-aes-json --save

Usage

var saj = require('simple-aes-json');

// Encryption

saj.encrypt('123456789','passphrase',function(encrypted){

  console.log(encrypted)
  //{"ct":"z/apIxwSDRmqDlvhmTfhJA==","iv":"f960b8b5722b64b1ea4b09d7c548ffb8","s":"d20cc8ac7b5f31cb"}

});

// Decryption

saj.decrypt(encryptedJSON,'passphrase',function(result){
  console.log(result); //'123456789'
});

Credits

Manyroots

License

MIT © ManyRoots

Readme

Keywords

none

Package Sidebar

Install

npm i simple-aes-json

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • manyroots