Questions tagged [bcrypt]

bcrypt is an implementation of the Blowfish cipher and a computationally-expensive hash function mostly used for password hashing.

bcrypt is an implementation of the Blowfish cipher and a computationally-expensive hash function mostly used for password hashing.

Resources

2290 questions
0
votes
2 answers

RoR - RubyGems not installing?

trying to install bcrypt-ruby-2.1.4. I have to use rvm to remove ruby 1.9.2, then reinstall/compile, then I can install the bcrypt gem, however the gem is only active in that one terminal session. If I open another tab in terminal I get the…
0
votes
1 answer

Hash Password in Node JS for already existing password in MongoDB

I manually store password in MongoDB and fetch the password info from mongoose to login as this is no user sign up module to store the password, there is only sign in module. Is there any way that I can convert the already stored password into hash…
0
votes
1 answer

Bcrypt unable to work, Bcrypt.compareSync always return false

The issue I am facing is that when the code is used on other computers, bcrypt.comparesync can return true. However, it always returns false on my computer, no matter if the text being compared is the same or different. Is this some sort of bug that…
0
votes
1 answer

User always getting failure redirected using passport?

No matter what I change the user login will keep redirecting to failure instead of success. I don't know if I'm missing something or if I did something wrong. I tried to read the documentation for passport but, I found it pretty confusing. Here is…
gego144
  • 13
  • 4
0
votes
1 answer

User authentication error using express not working

So I'm having trouble authenticating a user login using express for the backend. If I do a simple res.send I could get a response in postman. but if I do a check if the user and password check and generate a token if says error 401 invalid…
ljdayekh
  • 95
  • 1
  • 10
0
votes
0 answers

Bcrypt not installing on pycharm

I wanted install flask bcrypt module it showed Error as . Python implementation !="pypy" 'failed with error code 1 in none. While installing Bcrypt
Ai J AX
  • 1
  • 3
0
votes
1 answer

Python, Bcrypt password checking with SQL-Conncector

I am using SQL-Connector and Bcrypt in my Python program, I have this password stored in a database: $2b$12$rRkfWn03an8WxtfRSMNd2ebbPrhpbkRONzsAdCmM/goV9XobpOYk6 I would like to check if a user input is the same as the one in the SQL database, I am…
KIANick
  • 13
  • 1
0
votes
1 answer

Bcrypt compare always returning false

Im trying to do password verification using bcryptjs, const bcrypt = require('bcryptjs'); login(post){ this.uid = post.uid; this.pin = post.pin; this.getUser(this.uid); if(this.checkUser != undefined && this.pin…
Martin
  • 65
  • 7
0
votes
1 answer

Bad format of password when pulled out of DB

I just wrote a simple script that asks a user for their username and password. It will then store the data to a data base. However, when I pull out the data (user wants to login) it shows the error: TypeError: expected string or bytes-like object. I…
sOwlO
  • 3
  • 4
0
votes
0 answers

Having issues with node bcrypt

Currently having issues trying to compare the password I hashed with bcrypt. It always returns false when I compare it. Look at the code below and let me know what am doing bad userSchema.pre("save", async function (next) { const salt = await…
0
votes
1 answer

Node.js async try/catch error when getting data from mongoose

I'm trying to make a very basic login page that has three routes LOGIN, REGISTER, and WELCOME. The idea being that you can register a user with a name, email, and password of your choice at which point you will be redirected to login where you can…
Contradictions
  • 137
  • 3
  • 15
0
votes
1 answer

using bcrypt for login in nodejs

I'm having a hard time with integrating bcrypt to try to make my login system safe. I basically get the username, password the user inputs and try to compare it from the hashed password in my db. here's what I have. const inputUsername =…
Gianluca
  • 900
  • 8
  • 27
0
votes
2 answers

bcrypt : data and hash arguments required

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…
Cristos
  • 13
  • 9
0
votes
1 answer

Use Ion Auth BCrypt inside Oauth2

I'm developing an API using CodeIgniter 4 and OAuth2. I have an existing database that I need to use but the web app is made from CodeIgniter 3 and I used Ion Auth for authentication. How can I compare the given password by the user to the…
elimariaaa
  • 796
  • 4
  • 10
  • 30
0
votes
1 answer

How to store a hashedpassword in mongodb

Im trying to store a hashed password in mongoDB, but in all my tries it sends in plain text or stays in a loop postman service.js auth.js