Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

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
25,438,691
increased by4.35%

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 21,454,222 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 because the last version was released less than a year ago.It has 2 open source maintainers collaborating on the project.

Last updated on 17 Feb 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
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