2,329 questions
Best practices
1
vote
3
replies
200
views
FastAPI high-load login: how to handle bcrypt/argon2 hashing without blocking and scaling limits?
I’m working on a high-load async web application using FastAPI and I have a question about implementing login/registration logic with password hashing.
Problem
As we know, password hashing (e.g. with ...
Score of 0
1 answer
140 views
BCryptSetProperty KDF to SHA256 fails for ECDH_P256 on Windows 25H2 26200.6584 and later
The following code is used to generate a Diffie-Hellman Key using Windows CryptNG (aka Cryptography API: Next Generation, BestCrypt, bcrypt).
One of the tasks is to set the Key Derivation Function to ...
Score of 0
3 answers
235 views
Installed bcrypt with pip in a docker container, but getting ModuleNotFoundError
I am trying to run a Python program in a docker container. The program uses the bcrypt library. It runs without problems outside of a docker container (using intellij ultimate), but it does not run ...
Score of 19
4 answers
15097 views
passlib bcrypt not working when deployed to render. "ValueError: password cannot be longer than 72 bytes"
Im trying to deploy a react app on render. It works on my localhost but when deployed on render the auth function doesn't work. It shows this error
ValueError: password cannot be longer than 72 bytes,...
Score of 0
0 answers
71 views
How to execute data transformation scripts (like password encryption) during Prisma migration?
I'm using Prisma with MySQL. My current database stores passwords in plain text, and I need to migrate them to bcrypt hashes.
When deploying this change via prisma migrate dev, I need to:
Update the ...
Score of 5
1 answer
366 views
How to Verify WordPress 6.8 hash using Flask
I'm looking for guidance on implementing user authentication in a Flask application that integrates with WordPress 6.8, specifically focusing on how to handle the new password hashing methods used by ...
Score of 0
1 answer
67 views
Password hashes do not match with bcrypt (python)
I am trying to compare two passwords using bcrypt. The hashed password is stored in the database as a string. When I compare the two hashed passwords (the one from the database and the one from the ...
Score of 0
1 answer
229 views
How to set a password encoded with BCrypt (for creation and alter)?
With Spring Boot Client it is possible to use Bcrypt to encode a password as follows:
$ ./spring encodepassword superman
{bcrypt}$2a$10$3bQEwIsu2SxDxq1xafag6uH5C3TqacyI2xtQcxJqK9xyJrxgTUPkO
Therefore ...
Score of 1
2 answers
414 views
Neither WebCryptoAPI nor a crypto module is available in bcryptjs v3.0.0
I recently upgraded bcryptjs to version ^3.0.0 in my Node.js project and encountered the following error while trying to hash a password:
const bcrypt = require("bcryptjs");
const password =...
Score of 0
1 answer
98 views
How to compare using bcrypt in a db query using node.js and express
First off, I'm new to using express and this is my first attempt at creating an authentication page. I've connected to a MySQL database and successfully queried the database unhashed passwords, but as ...
Score of -4
2 answers
147 views
bcrypt.compare - 'await' has no effect on the type of this expression
I am using bcrypt.compare to compare the passwords:
UserSchema.methods.comparePasswords = async function (canditatePassword) {
const isMatching = await bcrypt.compare(canditatePassword, this....
Score of 0
3 answers
491 views
I am having Issues installing node packages like bcrypt, multer, cloudinary and multer-storage-cloudinary
Each time I try to install the following packages multer-storage-cloudinary, bcrypt, cloudinary I gets the error as below.
I have tried uninstalling node and cleaning caches but none is working
PS C:\...
Score of 1
1 answer
97 views
BCrypt does not detect changes near the end of very long passwords
I need some help to understand what is happening here. This test demonstrates the issue I'm having. I have a very long password, and I use BCrypt to hash it. I then try to verify the actual and hashed ...
Score of 2
0 answers
117 views
Undefined symbols for architecture arm64: "_bcrypt_gensalt [closed]
I am working on a cpp project and I am trying to build project with following command in build folder
cmake ..
make
and during linking process I am getting error
[ 96%] Linking CXX shared library ...
Score of 0
0 answers
54 views
Compare 2 BCrypt hashes with different salts
I am trying to write a client app that authenticates the user with a backend api. I read that sending plain text passwords, even over HTTPS, isn't secure in some proxied scenarios. This article shows ...