gensaltWithRounds method

String gensaltWithRounds(
  1. int log_rounds
)

Generate a salt for use with the BCrypt.hashpw method.

Returns an encoded salt value

Implementation

String gensaltWithRounds(int log_rounds) =>
    gensaltWithRoundsAndRandom(log_rounds, new Random.secure());