Server: Ubuntu server 14.04  Node: v4.2.6 LTS  npm: 1.3.10  I pullled my colleage's work from git remote. He made the node_modules as .gitignore. So I have to npm install the modules.   But after a successful install of npm. when I try to start t...
I'm making user authorization system and want to hash password before save it to DB. To reach this i use bcrypt-nodejs. The question in title above;  var mongoose = require('mongoose'); var bcrypt = require('bcrypt-nodejs');  var...
I am working on a 'sign up' page and having trouble with sqlite.  I am using express, bcrypt-nodejs, bookself.js for sqlite. getting an error saying database is lock. any workaround for this? appreciated. below is the code for the part.  app....
I am getting a bcrypt error stating that data and hash arguments are required, referencing line #44 in my routes.js file. From what I can tell, I am passing that information: the first parameter to bcrypt.compare is the user entered password, and the...
I use the nodejs bcrypt library for better password protection.  I am not sure i understand exactly how to use it, but i got this so far:  //A module containing this login function:  login: function(credentials,req,res) {      //"credentials"...
I'm actually using bcrypt module to hash and compare hashed passwords.  What i would like to do is to remove the bcrypt module and use the default crypto library both for hashing and comparing passwords.  Is this possible?  Will this be less safe...
I am using bcrypt to generate salts and hash passwords, but I do not think that it is doing it very securely. When I use the following code:  bcrypt.genSalt(10, function(err, salt) {   user.salt = salt;   bcrypt.hash(password, salt, function(err, has...
I'm using node-bcrypt along with PostgreSQL (via Sequelizejs to hash and save passwords.   The user's password is hashed in a beforeValidate hook like so:  beforeValidate: function(user, model, cb) {         bcrypt.hash(user.password, 10, fun...
I am trying to figure out how to implement "Remember me" into an app that I am working on. Currently my implementation looks like this.   User Signs in and requests to be remembered Server validates user with email/password If validation is s...
Having an awful time trying to compare passwords using bcryptjs so I can sign a JWT but trying to login I can't compare to sign the token and send to the client.  Problem  I can hash a password and store into the DB, where I'm having issues i...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.