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

TypeError: User.pre is not a function

I am trying to implement a Node.js endpoint, which updates the password if the timestamp and JWT match. Am I using old syntax here? My code is the following: app.put('/changepassword', function (req, res) { //…
Munchkin
  • 857
  • 5
  • 24
  • 51
0
votes
0 answers

NameError (uninitialized constant BCrypt)

I keep receiving this error in rails console when I attempt to create a password. BCrypt::Password.create("foobar") NameError (uninitialized constant BCrypt) My gemfile : source 'https://rubygems.org' git_source(:github) { |repo|…
st123
  • 246
  • 3
  • 14
0
votes
1 answer

CodeIgniter3 - password hashing doesn't work for all special characters

I'm trying to hash passwords using the CodeIgniter 3 library "Community Auth", and I think I've found that only certain special characters will work. I just can't tell why, or really what's happening to them. Here's an example password that works:…
James
  • 834
  • 7
  • 27
0
votes
1 answer

Spring how to match bcrypt password in a non-blocking way

Hey i am creating a rest api using webflux for learning purpose and i am stuck with bcrypt password matches at login page. My login request is taking extra time and when i dig little more I found that matches function is a heavy task and time…
0
votes
2 answers

Invalit salt in bcrypt when i checkpw

Working with flask python. When i try to compare the hashed password encrypted with bcrypt.hashpw() say invalid salt. Now i test it and if i put this if statement woks but only if in the password field in the html form i paste the password hashed…
AMITIEL23
  • 13
  • 1
  • 3
0
votes
0 answers

Cannot set state using usereducer function

I have two initial state posts and users. I am able to update the state of posts but not of users. I am using the JWT to send the token from the server-side to the client-side. When I console out the response received after sending the axios post…
0
votes
1 answer

Node JS - Updating password with findOneAndUpdate and Bcrypt

I'm new with Node.js, I'm trying to update the profile page, so that a user can input the old pass and the new pass, and that updates in DB I'm using findOneAndUpdate and trying to come up with a way to: 1 find the user 2 get the user pass 3 compare…
pickos75
  • 45
  • 6
0
votes
1 answer

Find single user based on parameters

I'm trying to set up signing in to the website I'm working on. I'm having trouble finding a user based on their login information as my result is always coming up null. This is what I have in my users service that passes in the username and…
hego64
  • 345
  • 1
  • 5
  • 17
0
votes
1 answer

Cannot get Bcrypt.js to encrypt Users model password

I'm working on my first Sequelize server and mySQL db. I can't seem to get bcrypt to work and hash my users passwords. I can get the model to successfully add to the db. But none of the methods for password encrypting seem to be working. Here is my…
kyledvs
  • 3
  • 1
0
votes
2 answers

How to use bcrypt in mysql with php

I want to encrypt/secure my phoneNumber column in MySQL so for this purpose I used bcrypt but unable to decrypt this Here is my code $password="abcd"; echo $pwd=password_hash($password, PASSWORD_DEFAULT); …
amit
  • 1
  • 1
  • 18
  • 28
0
votes
1 answer

npm install bcrypt failed node

$ npm install bcrypt bcrypt@5.0.0 install D:\courses\Angela Yu - Web Development\31. Authentication & Security\Secrets - Starting Code\node_modules\bcrypt node-pre-gyp install --fallback-to-build The system cannot find the path specified. '"node"'…
0
votes
1 answer

Bcrypt causing Postgres to close

I'm working on creating a table of users using Bcrypt and keep getting an error: (node:54133) UnhandledPromiseRejectionWarning: Error: Client was closed and is not queryable I'm recycling some code from a previous project that is working on that…
Xichi
  • 61
  • 7
0
votes
1 answer

I am unable to install bcrypt using npm install. I am able to download every other package except bcrypt . Why is it so?

PS C:\Users\saalik\Desktop\JS\task manager> npm install --save bcrypt npm ERR! code EAI_AGAIN npm ERR! errno EAI_AGAIN npm ERR! request to https://registry.npmjs.org/bcrypt failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org npm ERR! A…
Saalik Mubeen
  • 21
  • 1
  • 4
0
votes
1 answer

NestJS and MySQL - How to insert a default password into Users table that uses bcrypt hash?

I have a simple web application that allows for registering of new users using bcrypt to store the password. My TypeORM User entity looks like: @Entity() export class User extends BaseEntity { @PrimaryGeneratedColumn('uuid') id: string; …
noblerare
  • 10,277
  • 23
  • 78
  • 140
0
votes
1 answer

UnhandledPromiseRejectionWarning: data and salt arguments required

problem: i keep getting the error in title when trying to register a new user only when using postman no idea why. Also, Proxy problems: Could not proxy request /api/auth/register?hello&world from localhost:3000 to http://localhost:8080/. Things…
92yo
  • 518
  • 1
  • 4
  • 12
1 2 3
99
100