@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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @tinyhttp/cookie-signature

      Weekly Downloads

      79,668

      Version

      2.1.0

      License

      MIT

      Unpacked Size

      3.61 kB

      Total Files

      6

      Last publish

      Collaborators

      • dropthebeatbro