0.1.5 • Published 9 years ago

rfc6896 v0.1.5

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

RFC 6896 Secure Cookie Sessions for Node.js

A pair of transform functions. Takes your choice of cryptographic primitives. Hews closely to the language of the RFC.

Install:

$ npm install --save rfc6896

Then:

var scs = require('rfc6896')(
	tid, // string
	encipher, // function(x, iv)
	decipher, // function(x, iv)
	hmac, // function(x)
	session_max_age, // seconds
	random, // function()
	compress, // function(x)
	decompress // function(x)
)

typeof scs.outboundTransform // => 'function'
// Takes a Buffer plaintext argument.

typeof scs.inboundTransform // => 'function'
// Takes a string cookie value argument.
// Throws exceptions.

Neither transform function references this.

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago