0.1.0 • Published 8 years ago

rest-message v0.1.0

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

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