mongoose-bcrypt-compare
Utility for checking multiple passwords hashed in bcrypt. Enables you to check if a certain string is already used as a password.
Installation
npm install mongoose-bcrypt-compare
Dependencies
bcrypt
Usage
passwordToCompare -> is the string password to be compared to the hashdbResultSet -> the json result showLog -> shows the log in the nodejs server returns-> true/false var compare = ; // where `hash` is a json result from dbPasswordModel;
Release History
0.1.2 - initial release
0.1.3 - added show log
0.1.4 - just edit readme