Skip to content
Snippets Groups Projects
Commit f8727606 authored by Hermann Owren Elton's avatar Hermann Owren Elton
Browse files

fixed hash password

parent 2ca312a4
No related branches found
No related tags found
No related merge requests found
Pipeline #72060 passed
......@@ -210,9 +210,10 @@ public class UserDAO {
String hashedPassword = sb.toString();
StringBuilder hb = new StringBuilder();
for (byte b : salt) {
sb.append(String.format("%02x", b));
hb.append(String.format("%02x", b));
}
String salted = hb.toString();
System.out.println(salted);
return hashedPassword+"|"+salted;
}catch (NoSuchAlgorithmException e){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment