express-pwnd-pw
Express.js security middleware for checking user password safety with Have I Been Pwned (HIBP) API.
INSTALL
npm i express-pwnd-pw
Or find help from:
SYNOPSIS
"use strict";var express = ;var app = ;var pwndPw = ;app; // use default settingsapp;appapp;
Middleware
"use strict";var express = ;var app = ;var pwndPw = ;app; // use default settingsapp;app;
Helper Functions
password()
var pwndPw = ;let vuln = pwndPw;if Object > 0// It's a popular password! (rock)// {// '8cb2237d0679ca88db6464eac60da96345513964': 2333232,// '230991abcd77e8173edb0af392e1f11120051e29': 6638// }
Contribute
PRs welcome!
If you use/like this module, please don't hesitate to give me a Star. I'll be happy whole day!
Hope this module can save your time, a tree, and a kitten.