mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix check bug
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package cn.hutool.crypto.test.digest;
|
||||
|
||||
import cn.hutool.crypto.digest.BCrypt;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
public class BCryptTest {
|
||||
|
||||
@Test
|
||||
public void checkpwTest(){
|
||||
Assert.assertFalse(BCrypt.checkpw("xxx",
|
||||
"$2a$2a$10$e4lBTlZ019KhuAFyqAlgB.Jxc6cM66GwkSR/5/xXNQuHUItPLyhzy"));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user