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
BCrypt.checkpw("Google123", "$2a$10$Qj.7VHa8tJcSFAU9eR1o8eCiXzFSkQPQxpODL971xKiDFbYjdaWyS"); // not working nor
BCrypt.checkpw("test123test", "$2a$10$vGeVVu.E0XGjlNEa0xMCK.R0SEH0aFuyJpefrq01Axz6WSbHApPEu"); // is working. It always returns false.
Although it should return true since Google123 hashing is
$2a$10$Qj.7VHa8tJcSFAU9eR1o8eCiXzFSkQPQxpODL971xKiDFbYjdaWyS
using BCrypt algorithm.
Can you please help me fix this issue or should I look for some other Implementation of Bcrypt.