cookie-signature
Advanced tools
Sign and unsign cookies
Weekly downloads
Readme
Sign and unsign cookies.
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;
MIT.
See LICENSE file for details.
Sign and unsign cookies
The npm package cookie-signature receives a total of 18,338,439 weekly downloads. As such, cookie-signature popularity was classified as popular.
We found that cookie-signature demonstrated a healthy version release cadence and project activity. It has 2 open source maintainers collaborating on the project.