Web API built with Node and Express. It wraps Dropbox's zxcvbn library just in case you need to verify a password's strength on both the client and server with a guarantee of the same result from both.
Node.js must be installed.
Optionally, Docker and/or cURL
npm install
npm test
npm start
npm run start:dev
for automatic node restart when code changes.
npm run docker:start
POST is required for security reasons. Think of the call as a request to create a strength estimation. API assumes SSL protocol.
{
"password": "horsebatterystaple"
}
zxcvbn result described here
{
"password": "horsebatterystaple"
}
{
"score": [0-4]
}
curl -H "Content-Type: application/json" -X POST -d '{"password":"asdfghgfd"}' http://localhost:3000/zxcvbn/score
Ctrl-c
if started with npm start
or npm run start:dev
npm run docker:stop
if started with npm run docker:start