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

My Spring Boot application isn't understanding bcrypt for some reason

I'm using Spring Boot and I wanted to save a password in src/main/resources/application.properties with this line: spring.datasource.password={bcrypt}$2y$18$nBz3NZD6ygFL/MvgLm9lu.rZvfCjNhQRqpHBw4VkBphOzxxMUi1nW On my business pc it worked but now…
user15394835
0
votes
2 answers

Hashing a password and securing it

I am a new programmer so please forgive me if what I am going to say doesn't make any sense. I know that we store hashes instead of actual passwords to secure passwords in case someone gets access to the database but let's say if someone has got all…
0
votes
1 answer

Bcrypt file too short

I am facing an error that causes a crush on my nodejs application. The error is below: ' Error: /home/*******/nodevenv/******/12/lib/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node: file too short at Object.Module._extensions..node…
0
votes
1 answer

Handling nested asynchronous functions to return one final result

In my backend server which runs on express I have: app.post("/login", async(req, res) => { try { const { username, password } = req.body; let result = await checkCredentials(username, password) console.log("result of…
momomo
  • 319
  • 1
  • 5
  • 15
0
votes
1 answer

Get Raw data from bcypt hash

I am saving my password after hashing using bcrypt Now I need to get raw data from hash value. suppose, My password 123456. I am saving the password after hash suppose 3jhjhjkjk34k34k34j I need to get my password from the hash value.
0
votes
1 answer

Can't use key_digest instead of password_digest for has_secure_password?

I am trying to use bcrpyt with has_secure_password but instead of password_digest attribute, I am using key_digest. as the documentation of has_secure_password allows us to use any XXX_digest.(…
0
votes
1 answer

Internal Server Error while using heroku and bcryptjs

My friend and I are developing a frontend website where we need to encrypt some data before it goes to a database. We were advised to use bcryptjs and so we did On the following code you can see our middleware: const jwt = require('jsonwebtoken');…
0
votes
1 answer

How to add a method in sequelize model using typescript and bcrypt?

I'm creating a project in typescript and I'm having troubles with bcrypt and sequelize. To encrypt passwords I typed this code: import Sequelize from "sequelize"; import { sequelize } from "../dbpostgredatabase"; import bcrypt from "bcrypt"; export…
0
votes
1 answer

flask_bcrypt does not allow encoded (Byte) password with '\x00' in the middle

I have some code that accepts a password in string format, and hash it with SHA3-512 before passing it to flask_bcrypt for hashing. However, by some coincidence, I found a test case that produces a hash that contains '\x00' in the middle of the hash…
Benji Tan
  • 635
  • 7
  • 22
0
votes
1 answer

"UnhandledPromiseRejectionWarning: Error: Illegal arguments: undefined, string" at _async

I was learning JWT by following a YouTube tutorial. When i started hashing the password it threw me this error. I printed the salt it's printing fine but there's some issue while hashing. I tried for try catch method too but it automatically went to…
0
votes
2 answers

Cannot resolve symbol 'BCrypt'

I am trying to add BCrypt to my code, but my program won't import the dependency. All I get is the message "Cannot resolve symbol 'BCrypt'" and if I try to look at the informationsymbol, my only alternatives are: "Create class 'BCrypt'" "Create…
Jenny L
  • 3
  • 2
0
votes
2 answers

error: node_modules/bcrypto/build/Release/bcrypto.node: invalid ELF by npm start on debian server

Hallo, If I try to npm start I get this error: error: /home/kyrill/msh/backend/node_modules/bcrypto/build/Release/bcrypto.node: invalid ELF header /home/kyrill/msh/backend/node_modules/bcrypto/build/Release/bcrypto.node: invalid ELF header…
Kyrill
  • 265
  • 1
  • 7
  • 19
0
votes
0 answers

data and salt argument with bcrypt

I used the same module for every one of my subscriptions but I don't why with this one I have this Error: data and salt arguments required with a code 500. maybe there is an update? But I can't find anything about that ... also my code inscription:…
Xwingoga06
  • 99
  • 1
  • 10
0
votes
2 answers

Comparing hash from db (login)

How can I compare hash from my db to the users login password? I am using bcrypt story: Login: password plain then encrypt then compare encrypted to encrypted in db exports.Authenticate= async function (data){ try { return…
user14823468
  • 101
  • 13
0
votes
1 answer

Nodejs: TypeError: Cannot read property 'rows' of undefined hashing password

I am trying to hash password in my registration, at first when i dont have hash code, the code works but when I added the hashcode functionality, I received this error, please check the image below, async function postUser(req, res, next){ …
user14823468
  • 101
  • 13