Java Utililty Methods Salt Value Create

List of utility methods to do Salt Value Create

Description

The list of methods to do Salt Value Create are organized into topic(s).

Method

StringgetSaltString()
get Salt String
String SALTCHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
StringBuilder salt = new StringBuilder();
Random rnd = new Random();
while (salt.length() < 18) {
    int index = (int) (rnd.nextFloat() * SALTCHARS.length());
    salt.append(SALTCHARS.charAt(index));
String saltStr = salt.toString();
...