🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

make-signed-cookie

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

make-signed-cookie

Create a keygrip signed cookie

latest
Source
npmnpm
Version
0.0.0
Version published
Maintainers
1
Created
Source

Build Status

Create a keygrip signed cookie.

Example

var makeCookie = require('make-signed-cookie');
var Keygrip = require('keygrip');
var keys = Keygrip(['secret']);

var cookie = makeCookie(keys, 'foo', 'bar');
// => 'foo=bar;foo.sig=6CpNkQn9Ykm29oboqpPWaOlslAk'

Installation

$ npm install make-signed-cookie

API

makeCookie(keys, key, value)

Given an instance of keygrip keys, return a signed cookie string for key and value.

License

MIT

FAQs

Package last updated on 17 May 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts