} else {
iterations = DEFAULT_NUM_ITERATIONS;
}
}
ByteSource salt = getSalt(saltString, saltBytesString, generateSalt, generatedSaltSize);
SimpleHash hash = new SimpleHash(algorithm, source, salt, iterations);
if (formatString == null) {
//Output format was not specified. Default to 'shiro1' when password hashing, and 'hex' for