I am trying to convert the generate salt value which is in the byte[] format to String. But each time it converts in to special characters.
I used following way for converting byte[] to String :
byte[] salt = new byte[] { 50, 111, 8, 53, 86, 35, -19, -47 };
String saltString = new String(salt,"UTF-8");
System.out.println(saltString);
But output comes like ??@?