Skip to content

A basic Encryption based Session Management Middleware for ExpressJS based applications.

Notifications You must be signed in to change notification settings

kirtanshetty/ksessions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ksessions

A basic AES 256 Encryption based Session Management Middleware for ExpressJS based applications.

Here are the options that is to be passed to the session middleware function as an input

{
  name: 'name',
  password: 'password',
  cookie: {
    initOnRestart: 'true'
    securityKey: 'securityKey',
    maxAge: 12433,
  }
}

Demo to use the ksession library.

var express = require("express");
var app = express();
var ksession = require("ksession").ksession;

app.use(ksession({
  name: 'name',
  password: 'password',
  cookie: {
    initOnRestart: 'true'
    securityKey: 'securityKey',
    maxAge: 12433,
  }
}));

About

A basic Encryption based Session Management Middleware for ExpressJS based applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published