plus.base64-token
v1.0.4
Published
The simplest BASE64 token `base64.md5`
Downloads
3
Readme
plus.base64-token
The simplest BASE64 token base64.md5
let {sign, verify} = require('plus.base64-token');
let token = sign({hi: 'there'}, 'secret');
console.log({token});
console.log(verify(token, 'secret'));
// { token: 'eyJoaSI6InRoZXJlIn0=.93147c75d4946f71507776f81f6f329d' }
// { hi: 'there' }
ES5
var {sign, verify} = require('plus.base64-token/es5');
// .....
CLI
Base64 Token
> plus.base64-token sign path/to/file.json secret
> plus.base64-token verify token secret