0.0.4 • Published 10 years ago

isolated-bcrypt v0.0.4

Weekly downloads
1
License
-
Repository
-
Last release
10 years ago

isolated-bcrypt

This is a dirty, dirty hack around bcrypt being horribly broken in node 0.11. You probably shouldn't use this in production.

Recommended usage

var bcrypt;
try {
  bcrypt = require('bcrypt')
} catch (e) {
  bcrypt = require('isolated-bcrypt')
}

bcrypt.hash(password, rounds, function (err, hashed) {
  bcrypt.compare(password, hashed, function (err, same) {
    console.log('passwords match?', same)
  })
})

Notes

I haven't bothered implementing the longer genSalt method. Nag me if you think you need it.

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago