How Secure Is My Password?
Using ES6 modules:
// import the hsimp-purescript module;;;;;// create the hsimp function// if passed valid config, setup will return a functionconst hsimp =;// to runconst result = ;
You will get back an object with the following structure:
// how long it would take to crack the password as a human readable stringtime: "42 minutes"// the highest level of check (e.g. insecure, warning, notice - see below)level: "notice"// the checks - in level of importancechecks:name: "Character Variety: No Symbols"message: "Your password only contains numbers and letters. Adding a symbol can make your password more secure. Don\'t forget you can often use spaces in passwords."level: "notice"// ...and so on
dist/test.js for a fully working version of the code in Node.
There are five levels:
insecure: a really bad password, probably very common
warning: might be ok, but things to be aware of
easter-egg: they've found something silly
notice: nothing major
achievement: something to be proud of
To build the code you'll require
spago. Then just run
make. However, the latest build should always be available in the