0.0.0 • Published 10 years ago

make-signed-cookie v0.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

Build Status

make-signed-cookie

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