Created
November 22, 2018 16:06
-
-
Save keithrozario/6ea59cc5188c1cb6bd6637cb57dabeb7 to your computer and use it in GitHub Desktop.
bcrypt in node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const hash = '$2b$12$HcE9WPecLL0IxfWr2om3W.tBWxJTLAd.xpLWDz43oKaqfbxtnUTKm' | |
for (i = 0; i < 500; i++) { | |
const myPlaintextPassword = i.toString() | |
bcrypt.compare(myPlaintextPassword , hash, function(err, res) { | |
console.log(myPlaintextPassword) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment