gensalt

open fun gensalt(log_rounds: Int, random: SecureRandom): String

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

Return

an encoded salt value

Parameters

log_rounds

the log2 of the number of rounds of hashing to apply - the work factor therefore increases as 2**log_rounds.

random

an instance of SecureRandom to use


open fun gensalt(log_rounds: Int): String

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

Return

an encoded salt value

Parameters

log_rounds

the log2 of the number of rounds of hashing to apply - the work factor therefore increases as 2**log_rounds.


open fun gensalt(): String

Generate a salt for use with the BCrypt.hashpw() method, selecting a reasonable default for the number of hashing rounds to apply

Return

an encoded salt value