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
1 answer

Using an SQLite return as a password field within Bcrypt (Python)

I want to check if the input password is the same as that stored in the database but when I use bcrypt.checkpw() it returns an error saying that it expects a string or byte because the SQL query returns a tuple. I can't find a way to convert the…
0
votes
1 answer

Laravel: Hash::check() returns `true` for two different messages

I observed a very strange behavior with Laravel's Hash Facade using Hash::make() to create a digest (with bcrypt) and save it to the database. For example, the plain…
Johannes
  • 1,478
  • 1
  • 12
  • 28
0
votes
2 answers

confused about how to use bcrypt-ruby

I am implementing a validation scheme and am using the bcrypt-ruby gem. require 'bcrypt' class User < ActiveRecord::Base include BCrypt attr_accessor :password attr_accessible :name, :email, :password,…
chell
  • 7,646
  • 16
  • 74
  • 140
0
votes
0 answers

NodeJS Bcrypt hashing & comparing takes 2-3 seconds on average. How to optimize it

NodeJS Bcrypt hashing & comparing takes 2-3 seconds on average. How to optimize it. Is there any alternative solution for password hashing with millisecond-level performance? Please suggest modifications required in the code…
Aswin Av
  • 1
  • 1
0
votes
1 answer

Cannot install bcrypt 3.1.16 gem on Windows: ld.exe: cannot find -lgmp

I'm trying to update my bundle, it needs bcrypt, but it fails with an error. >bundle Fetching bcrypt 3.1.16 Installing bcrypt 3.1.16 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory:…
Chloe
  • 25,162
  • 40
  • 190
  • 357
0
votes
1 answer

Passport.js Local Strategy + bcrypt + Hashed password stored in dotenv environment variables - is this is a safe method?

I'm creating a simple admin dashboard using Node and Express that only me and 2 others would use and I decided to use a simple password to get access to the dashboard. I want to keep this as a light application so I don't want to use a full…
sid_508
  • 119
  • 4
0
votes
1 answer

Can I validate bcrypt passwords form PHP 7 (Symfony) against vb.net (BCrypt.net)?

I've an existing web service with a lot of users. These users have usernames and bcrypt passwords. These passwords look like this: "$2y$10$0veojsfh43..." Now, I've created a vb.net application and want to re-use te login from my web service. The…
iknownothing
  • 354
  • 3
  • 9
0
votes
1 answer

undefined field on mongoose Schema

I'm getting an undefined field trying yo compare an user password this is the function logUser = (req,res) => { User.findOne({ username:req.body.username}, (err,user) => { if(!user){ req.flash('error','El nombre de…
af_159623
  • 197
  • 10
0
votes
2 answers

How to NOT send a plain-text password to BE and still verify it

I am having a dillema now .. I am building an application on VueJS and NodeJS .. and during the authentication, I need to verify whether the password and username match (obviously). The problem is, I don't want to send the plaintext password from FE…
Mr.P
  • 1,182
  • 3
  • 20
  • 44
0
votes
0 answers

How to generate single bcrypt hash for association of multiple columns in SQL Server/Sequelize/NodeJS?

I am working on a Electron/NodeJS application where i have a requirement wherein I have to create hashvalue which consist of all columns of a table. I have done hasing for single password field like below and i don't have any experience how…
JSBeginner
  • 41
  • 2
  • 12
0
votes
1 answer

bcrypt@2.0.1 trying to download from wrong url results 404. How to fix?

I'm trying to revive ancient application on a new server. This application runs on meteor 1.5.1 and nodejs 4.8.4. In a package.json I've "bcrypt": "^2.0.1", entry. When I try to install packages by running meteor npm install --save it's trying to…
Shinebayar G
  • 4,624
  • 4
  • 18
  • 29
0
votes
1 answer

I cant save my users when I use bcrypt with mongoose pre

The problem start when I use the bcrypt middleware to encrypt my password. Whitout bcrypt I could save the users, but with it not now. My users.js file 'use strict' const mongoose = require('mongoose') const Schema = mongoose.Schema const bcrypt =…
Leo
  • 1
0
votes
2 answers

Problem with RSA implementation with WinAPI

So I use the CNG framwork from windows in my software(which written exclusively with c). The problem is when I try to implement RSA in my code The code looks something like this: DWORD temp = BCRYPT_SUPPORTED_PAD_OAEP; …
TheAsker
  • 23
  • 2
0
votes
1 answer

.save() with save pre hook won't work with Mongoose

So I have been struggling with this for the last couple of days. I created a User schema in Mongoose, and I have a pre save hook that hashes it's password field. Every time i tried to save a user to the database, i noticed the save method was never…
Eddie Taliaferro
  • 268
  • 1
  • 5
  • 11
0
votes
1 answer

Android Java Bcrypt library password doesn't match database encrypted password

So I know many people ask why their encrypted password doesn't match with the input, but I couldn't find any specific case as for my situation. I am using the Bcrypt Library of https://github.com/patrickfav/bcrypt in my Android Sqlite project. When…
Alon
  • 41
  • 4