ljoaquim 1590311121 first commit há 10 meses atrás
..
History.md 1590311121 first commit há 10 meses atrás
LICENSE 1590311121 first commit há 10 meses atrás
Readme.md 1590311121 first commit há 10 meses atrás
index.js 1590311121 first commit há 10 meses atrás
package.json 1590311121 first commit há 10 meses atrás

Readme.md

cookie-signature

Sign and unsign cookies.

Example

var cookie = require('cookie-signature');

var val = cookie.sign('hello', 'tobiiscool');
val.should.equal('hello.DGDUkGlIkCzPz+C0B064FNgHdEjox7ch8tOBGslZ5QI');

var val = cookie.sign('hello', 'tobiiscool');
cookie.unsign(val, 'tobiiscool').should.equal('hello');
cookie.unsign(val, 'luna').should.be.false;

License

MIT.

See LICENSE file for details.