Questions tagged [jbcrypt]

The Java implementation of OpenBSD's Blowfish password hashing code.

jBCrypt is the Java implementation of OpenBSD's Blowfish password hashing code, as described in "A Future-Adaptable Password Scheme" by Niels Provos and David Mazières.

This system hashes passwords using a version of Bruce Schneier's Blowfish block cipher with modifications designed to raise the cost of off-line password cracking and frustrate fast hardware implementation. The computation cost of the algorithm is parametised, so it can be increased as computers get faster. The intent is to make a compromise of a password database less likely to result in an attacker gaining knowledge of the plaintext passwords (e.g. using John the Ripper).

jBCrypt is licensed under a ISC/BSD licence (see the LICENSE file for details) and ships with a set of JUnit unit tests to verify correct operation of the library and compatibility with the canonical C implementation of the bcrypt algorithm.

The project home page http://www.mindrot.org/projects/jBCrypt/.

39 questions
0
votes
0 answers

BCrypt.checkpw returning false

I have a user row in my user table that has a password (don't worry, it's a dummy password) that was encrypted using BCrypt.hashpw: System.out.println(BCrypt.hashpw("1234", BCrypt.gensalt())); //…
Matt
  • 162
  • 1
  • 8
0
votes
1 answer

Scala: using jOOQ DSL with boolean methods

I have this jOOQ 3.14.4, Scala 2.13 code, that is mixed with some deprecated Play code: val user = Option(sql .selectFrom(USER) .where(USER.EMAIL.equal(email)) .and(USER.PASSWORD.equal(crypto.sign(password))) .fetchOne()) Note that email…
rapt
  • 11,810
  • 35
  • 103
  • 145
0
votes
1 answer

Bcrypt NodeJS compare password always returning false

So obviously i am using bcrypt to register and hash my password and that works. And now i am making an login where i have to compare the form password and the hashed password in the database and this is how i do this: // Get post data let email =…
TehGaz7
  • 121
  • 2
  • 11
0
votes
3 answers

jBCrypt Encrypt and Decrypt

I came to know about jBCrypt for hashing a password and storing in DB. But I didnt find any option to get back the actual value from the hashed value. Only BCrypt.checkpw(password, hashedPassword) is available which is returning…
Nithyananth
  • 329
  • 2
  • 5
  • 17
0
votes
0 answers

jBCrypt checkpw returns false for correct password

I am hashing the password "password" using JBCrypt by doing public User addUser(User newUser) { String passwordHash = BCrypt.hashpw(newUser.getPassword(), BCrypt.gensalt()); newUser.setPassword(passwordHash); Object
kovac
  • 4,945
  • 9
  • 47
  • 90
0
votes
0 answers

can not use BCrypt in java Eclipse

I want to use bcrypt encryption for user password. I download bcrypt zip file bcrypt 1.1.zip and add it to my project build path in eclipse. Now when I want to use BCrypt in servlet it gives an error BCrypt can not be resolved. I dont know how to…
Bhargav Thanki
  • 4,924
  • 2
  • 37
  • 43
0
votes
1 answer

What is the most secure way to use jBCrypt?

I have been working on a login system in java. I currently have the program do some minor custom encryption first, then use JBCrypt to crypt/hash and then use php to check the database for matching hashes. However, the problem is that when using…
Kyle
  • 2,339
  • 10
  • 33
  • 67
0
votes
1 answer

How to compare passwords in Java hashed by devise gem ruby on rails

I am working on a task of authenticating users from mysql db. The user passwords are hashed by devise gem framework for Ruby on Rails. Docs says it is also using BCrypt to hash the passwords. The problem with jBcrypt is that…
Rahat ALi
  • 61
  • 2
  • 4
-1
votes
1 answer

Spring security with Bcrypt

I am using Bcrypt as password hashing algorithm for Spring security project. When I tried using online Bcrypt calculator it generates different hash values for the same plain text password. This is due to salting which I understood. But for…
1 2
3