List of usage examples for org.springframework.security.crypto.bcrypt BCrypt gensalt
public static String gensalt(int log_rounds, SecureRandom random) throws IllegalArgumentException
From source file:org.vjso.security.util.SecurityUtilities.java
/** * Generates a random salt * @return a string representing the salt */ public static String getSalt() { return BCrypt.gensalt(LOG_ROUNDS, random); }