3.0.0 • Published 11 months ago

@otterhttp/cookie-signature v3.0.0

Weekly downloads
-
License
LGPL-3.0-or-later
Repository
github
Last release
11 months ago

@otterhttp/cookie-signature

npm (scoped) npm

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

Install

pnpm i @otterhttp/cookie-signature

API

import { sign, unsign } from '@otterhttp/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.