Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Alex-Werner/a2ce10bff08a0512159c531e612712a6 to your computer and use it in GitHub Desktop.
Save Alex-Werner/a2ce10bff08a0512159c531e612712a6 to your computer and use it in GitHub Desktop.
//Hapi JS use his own cypher algorithm
//see here : https://github.com/hueniverse/iron
handler:funcition(request, reply){
var ssid = req.headers['cookie'].split('session=')[1];
var sidPassword = request.connection.states.cookies.session.password
Iron.unseal(ssid,,Iron.defaults, function (err, unsealed) {
console.log(unsealed);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment