update result page

This commit is contained in:
Sola
2015-12-10 14:29:00 +08:00
parent aa042bbd6c
commit d852424123
6 changed files with 8 additions and 13 deletions

View File

@@ -14,14 +14,7 @@ public class TestEncrypt {
@Test
public void test() {
String hash = BCrypt.hashpw("mypasswordhere", BCrypt.gensalt());
System.out.println("hash = " + hash);
System.out.println("BCrypt.checkpw(\"mypasswordhere\",hash) = " + BCrypt.checkpw("mypasswordhere", hash));
}
@Test
public void testChk() {
String hash = "$2a$10$RCXxfEygwHQeF4BKjx5Uwu/C72HqoCN.jKpNSNdwizcy7m301C9Am";
System.out.println("BCrypt.checkpw(\"mypasswordhere\",hash) = " + BCrypt.checkpw("mypasswordhere", hash));
assert BCrypt.checkpw("mypasswordhere", hash);
}
}