I am trying to add salt to Argon2d.
I am not sure where I can pass the String/char[]/byte[] for salt...
Sample code (Have specified salt length as 8 for "soemsalt"):
Argon2 argon2 = Argon2Factory.create(Argon2Types.ARGON2d, 8, 32);
String hash = null;
String str = "password";
char[] passwordChar = str.toCharArray();
String salt = "somesalt";
Hi,
I am trying to add salt to Argon2d. I am not sure where I can pass the String/char[]/byte[] for salt... Sample code (Have specified salt length as 8 for "soemsalt"): Argon2 argon2 = Argon2Factory.create(Argon2Types.ARGON2d, 8, 32); String hash = null; String str = "password"; char[] passwordChar = str.toCharArray(); String salt = "somesalt";
Also whats the version number parameter for this project by defalut ? Is it 13 ?