Skip to content

Unhackables/crypto-session

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

[koa-crypto-session]

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%