Undefined function with bcrypt-nodejs

I'm using bcrypt-nodejs to hashify passwords within a pre save function. I can't figure out why I continue to receive the error '[TypeError: undefined is not a function]' inside the callback...

Promisifying bcrypt-nodejs with Bluebird

I'm using NodeJS, with bcrypt-nodejs (https://github.com/shaneGirish/bcrypt-nodejs) and Bluebird for promises. Came up with this code and been wondering if there is better way to do the same...

Problems installing bcrypt-nodejs on Windows machine

I am having some problems installing bcrypt-nodejs on Windows machine, not bcrypt but bcrypt-nodejs which is a different dependency. I get the output below in the command line after doing npm...

Decrypt text for salt and bcrypt-nodejs

I am using bcrypt-nodejs module for password hash . But when want to forget password feature , how to get actual password ? My actuall password already encrypt by salt and bcrypt-nodejs.

bcrypt-nodejs compare method returns false every time

I'm trying to make a login in for my app using mongoose, passport-local, and bcrypt-nodejs. The userSchema pre('save') function works fine and saves a hashed password. however the bcrypt compare...

bcrypt invalid elf header when running node app

I'm working on a nodejs project for school. I wasn't able to install bcrypt with npm so i installed bcrypt-nodejs and the project worked fine yesterday. But today, when I do a "node app" i have...

bcrypt-nodejs compare function always return false

I'm having problem with bcrypt-nodejs' compare function. The compare function is returning the false value even the password is the right one. I've tried everything I could and I don't know the...

NodeJS: bcrypt vs native crypto

Can someone point out the differences between the two and example situations where use each? bcrypt looks great.

mongoose and bcrypt-nodejs not hashing and saving password

I'm using a bcrypt-node and mongoose to hash a users password and save that user to a mongo database. When I debug the code below it appears to be working correctly, when you log the password in...

'No callback function was given' error when using bcrypt-nodejs

Trying to store encrypted passwords in a Postgres database using Bcrypt-nodejs and when we run the code or run our tests we get the error 'Unhandled rejection No callback function was given'. We...

How to install bcrypt to Openshift nodejs server

I using openshift Nodejs(Latest) cartrige, so when I trying to use bcrypt-nodejs module it has error "octal literals are not allowed in strict mode". So I switched to bcrypt module but was unable...

Comparing BCrypt hash between PHP and NodeJS

For an app I'm working on, nodejs needs to verify hashes created by PHP and vice-versa. The problem is, the hashes generated in PHP (via Laravel's Hash class, which just uses PHP's password_hash...

bcrypt nodejs not works as expected

I generated the hash password into my db. In the incoming request I checked my plain input password with hashed password in the db. For example if my input password is XXXX and if add some...

Password not saved into database bcrypt nodejs

I'm trying to make an login/signup system with authentication. Im using Nodejs with bcrypt to encrypt the data. My problem is that the hashed pw does not get stored into the DB. Here is my signup...

Bcrypt-NodeJS compare() returns false whatever the password

I know that question has already been asked a few times (like here, here or there, or even on Github, but none of the answers actually worked for me... I am trying to develop authentication for a...

Nodejs bcrypt library

I use the nodejs <a href="https://github.com/ncb000gt/node.bcrypt.js">bcrypt</a> library for better password protection. I am not sure i understand exactly how to use it, but i got this so...

How to install bcrypt nodejs module in window 7 32-version

I am try to install nodejs bcrypt module on window 7 32-bit version.I have installed g++ and openSSL C:\mystore&gt;npm install -g bcrypt npm http GET https://registry.npmjs.org/bcrypt npm http 304...

Nodejs, bcrypt , Mongoose

I'm very new to Nodejs / Mongo (with Mongoose). I'm using the bcrypt module to hash the password from a HTML form. In my db.create function, I'm not able to store the variable storehash in...

'Incorrect arguments' thrown by bcrypt-nodejs - Passport

I have a log in system set up for my Node.js app. Recently I made a change to my user model (CoffeeScript): password: String to password: type: String select: false My function...

NodeJS Updating User Bcrypt - Password doesn't get hashed

I'm trying to set set up an update function for user profiles on a Node.JS application with hash passwords using the bcrypt-nodejs module. It works when signing in, but when I am updating the...

bcrypt or MD5 (prestashop + Node.JS)

One question! I'm working on a little project that involves prestashop 1.7 and Node.JS . The question is, can I use the bcrypt-nodejs to generate and verify prestashops...

Cannot find module 'bcrypt'

I am getting error Cannot find module 'bcrypt' in nodejs application I have tried to install it using npm install bcrypt but still getting the issue. node app.js Error message: Dec 30 2015...

Bcrypt NodeJS compare password always returning false

So obviously i am using bcrypt to register and hash my password and that works. And now i am making an login where i have to compare the form password and the hashed password in the database and...

Docker nodeJS bcrypt error

I get following error when I try docker-compose up graphql_1 | Error: Error loading shared library /usr/app/node_modules/bcrypt/lib/binding/bcrypt_lib.node: Exec format error graphql_1 | ...

bcrypt compare with nodejs

So im getting this error Error: Illegal arguments: string, undefined and this is the code router.post(&#39;/loguser&#39;, async (req, res) =&gt; { const compareHashed = await...

Nodejs Bcrypt + Heroku fail deploy

i am having problems when i try to do a deployment in heroku. The funny part is this was working three days ago. Also, is working fine in local machine. The version of Bcrypt is 3.0.0, node...

Error in hashing password with bcrypt-nodejs

Have been trying to create a password hash in my nodejs code But it not working and not showing any error message for me to debug. And my user is not creating also. I dont know if there is a...

Compare Nodejs generated bcrypt hash in PHP

Just to know about bcrypt hash comparison in different platforms, that I have one brypt hash which is generated at Nodejs server, now I am moving to PHP, I want to know about is this possible to...

How to interpret 'null' param in documentation

I am going through the bcrypt-nodejs https://www.npmjs.com/package/bcrypt-nodejs documentation and it says in the basic usage: bcrypt.hash(&quot;bacon&quot;, null, null, function(err, hash) { ...

No callback error shown when using bcrypt-node

I am have created a node library file called encrypt.js. Within that are some functions created using bcrypt-nodejs var bcrypt = require(&#39;bcrypt-nodejs&#39;); exports.cryptPassword =...