<dependency>
<groupId>org.mindrot</groupId> <artifactId>jbcrypt</artifactId> <version>0.3m</version> </dependency>
BCrypt.hashpw(password, BCrypt.gensalt(10));BCrypt.checkpw(pwd1, pwd2);
I need to specify that I do not need a very secure one because I am not handling sensitive data.