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

Login Authentication with bcrypt and SQLite3

i am currently building a React application with Nodejs/Express Backend and try to implement a Login Authentication. i register Users with Name, email, password and hash the password with bcrypt: router.post('/register', async (req, res) => { …
Antihero
  • 21
  • 1
0
votes
0 answers

Creating IV for CNG encryption

I'm trying to rework the CNG encryption example in the Microsoft documentation. One peculiar thing about the example is that the encryption IV is hard coded. I don't know a lot about encryption but my understanding is that it is more secure to…
Jonathan Wood
  • 65,341
  • 71
  • 269
  • 466
0
votes
0 answers

Trouble importing java bcrypt library

I faced a problem with importing the Spring Security library. Here is my main class: package com.example.test.myfirstproject; import org.springframework.boot.SpringApplication; import…
0
votes
0 answers

Verify bcrypt in node.js

I have a problem with password verification when logging in. I get a "no comparison" back. where am i getting the error? additionally user.password is undefined function post(req, res) { User.find({ email: req.body.email, …
0
votes
0 answers

Getting error while logging in due to unknown bcrypt issue

I'm working on the backend with nodejs and mongodb . After coding authentication part i'm having unknown issue and i think it's from bcrypt :( please have a look at my code. USER MODEL CODE - const mongoose = require("mongoose"); const bcrypt =…
Shoubhik Raj
  • 153
  • 1
  • 10
0
votes
1 answer

"TypeError: Unicode-objects must be encoded before hashing" even when password is encoded with bcrypt

When using bcrypt for a post request i keep getting the following error: TypeError: Unicode-objects must be encoded before hashing Even though i encoded a password in utf-8 as seen in the following code: hashed_pw =…
Samy M
  • 33
  • 4
0
votes
1 answer

How can I hash password every time it's changed in typeorm?

I am trying to hash password every time it has been changed in typeorm @Column() password: string; @BeforeInsert() async hashPassword() { this.password = await hash(this.password, 12); } How can I replicate isModified functionality from…
brand marke
  • 369
  • 2
  • 16
0
votes
2 answers

how to select this entity in repository

How can I select this entity in when creating a repository method in typeorm? I am trying to select password property on Admin entity but this selects Repository not entity @EntityRepository(Admin) export class AdminRepository extends…
brand marke
  • 369
  • 2
  • 16
0
votes
1 answer

logging in via passport by an express server on top of nodejs, using mongoose to connect with mongoDB

I am quite new to authentication and authorization and I am trying to sign in and register user to access my api. I managed to do the registration handler and store user info and Bcrypt it successfully. but I am still having difficulty accessing…
0
votes
1 answer

Why I am unable to send mail using nodemailer?

The below is my function for nodemailer - function mailer(firstName,emailId,password){ var transporter = nodemailer.createTransport({ service: 'gmail', host: process.env.HOST, // hostname secureConnection: false, // TLS…
0
votes
1 answer

How to use bcrypt.compare in sails js schema?

I have a user model like this: module.exports = { attributes: { email: { type: 'string', isEmail: true, unique: true, required: true }, password: { type: 'string', required: true } }, …
Vinita
  • 1,834
  • 2
  • 8
  • 20
0
votes
1 answer

spring boot using BcryptPasswordEncoder , the passwords are not matching

Spring boot application, user want to change the password after login but i the function is not changing the password. @PostMapping("/settings/passwordupdate") public String PasswordUpdate(@RequestParam("oldPassword") String oldPassword, …
SAR
  • 1,765
  • 3
  • 18
  • 42
0
votes
0 answers

BCrypt PasswordHasher:- FormatException: The input is not a valid Base-64 string

I went through almost all the related questions regarding this issue and could not found a similar situation or a reliable answer for my problem below. Problem: I am doing an ASP.NET Core MVC project. I employ Identity UI for user authentication and…
Pawara Siriwardhane
  • 1,873
  • 10
  • 26
  • 38
0
votes
1 answer

How do we hash a put request password?

Hi everyone am trying to hash my put request using bcrypt in my express-mongoose server the put request // updating a user router.put('/:id', async (req, res) => { const {error} = validate(req.body) if (error) return…
user13824605
0
votes
1 answer

I get bcrypt error after deployed my nodejs/expressjs app to AWS lambda

I am trying to make my express.js app works on AWS Lambda. The deployment (using serverless framework completes successfully, however the app returns a 500 internal error when I test my requests. My logs shows me this error…
John doe
  • 3,680
  • 7
  • 31
  • 65