Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

cookie-signature

Package Overview
Dependencies
0
Maintainers
2
Versions
10
Issues
File Explorer

Advanced tools

cookie-signature

Sign and unsign cookies

    1.2.0latest

Version published
Maintainers
2
Weekly downloads
22,820,025
decreased by-3.77%

Weekly downloads

Readme

Source

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.

Keywords

FAQs

What is cookie-signature?

Sign and unsign cookies

Is cookie-signature popular?

The npm package cookie-signature receives a total of 18,338,439 weekly downloads. As such, cookie-signature popularity was classified as popular.

Is cookie-signature well maintained?

We found that cookie-signature demonstrated a healthy version release cadence and project activity. It has 2 open source maintainers collaborating on the project.

Last updated on 17 Feb 2022
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc