@tinyhttp/cookie-signature
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

@tinyhttp/cookie-signature

npm (scoped) npm

HTTP cookie signing and unsigning. A rewrite of cookie-signature module.

Install

pnpm i @tinyhttp/cookie-signature

API

import { sign, unsign } from '@tinyhttp/cookie-signature'

sign(val, secret)

Signd the given val with secret.

unsign(val, secret)

Unsign and decode the given val with secret, returning false if the signature is invalid.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.0
    30,502
    • latest
  • 0.1.11
    0
    • pnpm-temp

Version History

Package Sidebar

Install

npm i @tinyhttp/cookie-signature

Weekly Downloads

78,756

Version

2.1.0

License

MIT

Unpacked Size

3.61 kB

Total Files

6

Last publish

Collaborators

  • dropthebeatbro