* Remove leading `PASSWORD_`, it's implied.
* `NOT_STRONG_ENOUGH` => `ALL_LETTERS_OR_NUMBERS`
* `SUCCESS` => `LONG_ENOUGH` if the password >= 12 characters.
* `SUCCESS` => `BLOOMFILTER_MISS` if the bloomfilter is used.
Maintains a bloom filter with list of common/leaked passwords
Checks for the presence of common passwords
Usage:
Create a new instance of the password checker, like so:
var checkpassword = new PasswordCheck(options);
where options can be:
options: {
minLength : integer, // minimum length of password, default 8
noOfHashFunctions: integer // no of hash functions to use for the bloom filter, default 8
// do not change noOfHashFunctions unless you also change it in the bloomfilter file.
}