1. 암호화 라이브러리, JBCrypt
- 다운로드 : https://mvnrepository.com/artifact/org.mindrot/jbcrypt/0.4
2. JBCrypt 사용방법
- Test2.java
package app;
import org.mindrot.jbcrypt.BCrypt;
public class Test2 {
public static void main(String[] args) {
String pw1 = BCrypt.hashpw("12345", BCrypt.gensalt());
System.out.println(pw1);
String pw2 = BCrypt.hashpw("12345", BCrypt.gensalt());
System.out.println(pw2);
}
}