zheng 3cabbb3159 webpack il y a 18 heures
..
History.md 3cabbb3159 webpack il y a 18 heures
LICENSE 3cabbb3159 webpack il y a 18 heures
Readme.md 3cabbb3159 webpack il y a 18 heures
index.js 3cabbb3159 webpack il y a 18 heures
package.json 3cabbb3159 webpack il y a 18 heures

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.