Files
med-notes/.pnpm-store/v10/files/8d/cd8cedabb08e6de82c74467aec769865e3d7d2dab7f184e2da1e9dd51ca1147f5c5a833284973e4cfca618d260250a05aaebad08ef8d359156cb584943d4d2
2025-06-26 03:35:15 +00:00

24 lines
427 B
Plaintext

# cookie-signature
Sign and unsign cookies.
## Example
```js
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.