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
0 answers

bcrypt.compare return false always

I am trying to create a login authentication for my form. I console log the passwords to check if I was doing something wrong but nothing seems to be working. thanks! The bcrypt.compare returns false always when it compares the result from the DB…
0
votes
0 answers

I am try to login with my bcrypt password from my old database with in laravel default auth function but its not working

I am trying to build a user management system with my existing database, where 'bcrypt' function for password encryption. I wanted to login with the user information of my old database. i connect my user table with model, but I can't login and don't…
roman syed
  • 49
  • 1
  • 6
0
votes
0 answers

How to Display Unhashed (But Encoded) User Password in Spring

I have a Spring-boot web application which has an Account.jsp page that displays users details. On this page I want a field 'password' which has the users actual password but only displays it as · and not the password itself. I understand that…
Rigg97
  • 83
  • 1
  • 13
0
votes
1 answer

bcryptjs salt as a string

In the bcryptjs package there is a hash(s,salt) method. /** * Asynchronously generates a hash for the given string. * @param s String to hash * @param salt Salt length to generate or salt to use * @return Promise with…
bvdb
  • 22,839
  • 10
  • 110
  • 123
0
votes
2 answers

How to hash password with bcryptjs in node?

I recieve password through req.body and hash it like this : const { name, email, password, number } = req.body; let userExist; userExist = await User.find({ email: email }); if (userExist.length) { const err = new…
Mehdi Faraji
  • 2,574
  • 8
  • 28
  • 76
0
votes
1 answer

How to make strong passwords in Laravel Passport

I'm using laravel passport to make a login system in my api. But I was wondering if there is any way to make the password more secure, is there any way to do more rounds in the password, I also read that Argon2id is more secure than bcrypt, that is…
Alezco05
  • 453
  • 1
  • 7
  • 22
0
votes
0 answers

Symfony UserPasswordEncoderInterface generates different values on each call

I did a simple command in symfony to take a value from the console and encode it: $io = new SymfonyStyle($input, $output); $email = $input->getArgument('email'); /** @var User $user */ $user = $this->em->getRepository(User::class)->findOneBy([ …
Conde
  • 785
  • 15
  • 31
0
votes
2 answers

Login authentication with bcrypt

I have a web app thats built with Laravel. I'm working on another site but not with Laravel. I need to authenticate users on this new site with the users table on the Laravel site database. The passwords are hashed with bcrypt. I tried to verify the…
Chima
  • 172
  • 1
  • 14
0
votes
1 answer

why do i get an error on bcrypt compare? async/await function

I'm trying to log a user with nodeJs and MySql Here my function to connect a User: export async function connectUser(email, password, cb) { console.log('Entry connectuser'); let db = dbConnect(); await db.query('SELECT id, email, password…
0
votes
0 answers

How to increase the work factor of an existing hash with BCrypt.Net?

I have bcrypt hash with work factor of 11. I want it increase it to 12. I don't have the original password. How do I do that?
Hristo Kolev
  • 1,486
  • 1
  • 16
  • 33
0
votes
1 answer

Permission denied when installing bcrypt NPM dependency on Heroku

I have a problem in deploying an app to Heorku, I have an existing app (a node js server), in the same git repository I install Heroku, when I push on Heroku master (git push heroku master) I receive this output: I cut some code. C:\some_folders>git…
Frotta
  • 11
  • 1
0
votes
1 answer

Error: data and salt arguments required (node js, bcrypt)

I am receiving an error "data and salt arguments required". Express/node js application using postgresql. Edit: I think my issue is with passing the 'password' correctly from the client side, because when I console.log(password) it returns undefined…
pengali777
  • 23
  • 1
  • 5
0
votes
1 answer

Gettting an undefined value from bcrypt hash function

Ok, I'm getting an undefined value from a function, I don't know why, I'm trying to get the value of a password hash for insert in the database, but the const that have the function has the value "undefined", so what I should change in my…
user13453074
0
votes
2 answers

Hashing a password with bcrypt

I need to hash the password before insert in the DB I have the function of bcrypt but I don't know how to get it into a const and use it for make the insert into mysql. I'm using bcrypt for it, so what's the method I should follow to get the…
user13453074
0
votes
1 answer

gettin a pasword hashed with node ks bcrypt

Wha I shoul do for get the password hashed and use it for insert in my DB const company = req.params.company; const name = req.params.name; const password = req.params.password; bcrypt.hash(password, saltRounds, (err, hash) => { }); If I use the…
user13453074
1 2 3
99
100