Skip to content
Advertisement

Tag: bcrypt

PHP Bcrypt Salt as of 7.0

I am working on an application in which I have to compare 2 hashed passwords in a database, one password is being generated in PHP with $Password = password_hash($RawPassword, PASSWORD_BCRYPT); While the other password that is being sent to the database to compare with the PHP hashed password is generated in Java with String hashedPassword = BCrypt.hashpw(password); As of PHP

BCrypt.checkpw() Invalid salt version exception

I’m trying to implement authentication using BCrypt, in my Play 2.1. Java application, but I’m getting Invalid salt version exception when I’m trying to authenticate the user. This is my stack trace I’m using following maven repository: http://mvnrepository.com/artifact/org.mindrot/jbcrypt/0.3m My code is based on the documentation, thus For saving the password (I’m also checking the password for being null) For checking

Advertisement