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 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'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...
In Node.js web development I saw it as a common practice to use bcrypt for hashing and comparison of password. Is bcrypt.compare vulnerable to timing attack?...
I am using passportjs to authenticate user and use bcrypt to store password. The following code reset my salt field, but it does not change the hash field.    UserSchema.update({         _id: mongoose.Types.ObjectId(req.user._id.toString()),     }, {...
I have a laravel website which transfer all its data to Hybird mobile app using html css and js. Mobile app works in offline mode. I have to perform authentication in mobile which is based on data transfered from website. But laravel uses bcrypt hash...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.