fix check bug

This commit is contained in:
Looly
2021-01-24 22:44:34 +08:00
parent bdb078b1ee
commit 221608b544
3 changed files with 23 additions and 1 deletions

View File

@@ -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"));
}
}