Skip to content

Instantly share code, notes, and snippets.

@keithrozario
Created November 22, 2018 16:06
Show Gist options
  • Save keithrozario/6ea59cc5188c1cb6bd6637cb57dabeb7 to your computer and use it in GitHub Desktop.
Save keithrozario/6ea59cc5188c1cb6bd6637cb57dabeb7 to your computer and use it in GitHub Desktop.
bcrypt in node
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