/** * Generate a salt for use with the BCrypt.hashpw() method * * @param logRounds the log2 of the number of rounds of * hashing to apply - the work factor therefore increases as * 2**log_rounds. * @return an encoded salt value */ public static String gensalt( int logRounds ) { return genSalt( logRounds, new SecureRandom() ); }
/** * Generate a salt for use with the BCrypt.hashpw() method * * @param logRounds the log2 of the number of rounds of * hashing to apply - the work factor therefore increases as * 2**log_rounds. * @return an encoded salt value */ public static String gensalt( int logRounds ) { return genSalt( logRounds, new SecureRandom() ); }
/** * Generate a salt for use with the BCrypt.hashpw() method * * @param logRounds the log2 of the number of rounds of * hashing to apply - the work factor therefore increases as * 2**log_rounds. * @return an encoded salt value */ public static String gensalt( int logRounds ) { return genSalt( logRounds, new SecureRandom() ); }
salt = Strings.getBytesUtf8( BCrypt.genSalt() ); break;
salt = Strings.getBytesUtf8( BCrypt.genSalt() ); break;
salt = Strings.getBytesUtf8( BCrypt.genSalt() ); break;