Created
July 13, 2016 08:50
-
-
Save Alex-Werner/a2ce10bff08a0512159c531e612712a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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