rest-message

0.1.0 • Public • Published

Rest message


Rest message provide a way to encrypt/decrypt rest messages between client and server. It can be used in both nodejs server environment or browser client.

Examples:

var rest = require('rest-message')('your private key', 'default token');
var msg = {
  data: {
    param1: 'value1',
    param2: 1234
  }
}
rest.encode(msg);
console.log(msg);

Readme

Keywords

Package Sidebar

Install

npm i rest-message

Weekly Downloads

1

Version

0.1.0

License

ISC

Last publish

Collaborators

  • unidevel