BCrypt.checkpw() Invalid salt version exception

前端 未结 7 1540
一生所求
一生所求 2021-02-05 05:45

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 authenti

7条回答
  •  后悔当初
    2021-02-05 05:53

    You have to make sure that the first argument is the plaintext and the second one is the hashed password. This is the function's declaration :

     public static boolean checkpw(String plaintext, String hashed)
    

提交回复
热议问题