1.0.3 • Published 4 years ago

crypto-session v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

License

crypto-session

Usage

const session = require('crypto-session')
const app = require('koa')()

session(app, {
  crypto_key: 'exiKdyF+IwRIXJDmtGIl4vWUz4i3eVSISpfZoeYc0s4='
})

Generate a new crypto_key (note, the length depends on your algorithm):

$ node
> crypto.randomBytes(32).toString('base64')

License

MIT