Bcrypt.genSalt

Generate a good salt for this algorithm and write to an output range

  1. string genSalt(size_t log_rounds)
  2. void genSalt(Out output, size_t log_rounds)
    struct Bcrypt
    static
    void
    genSalt
    (
    Out
    )
    (
    ref Out output
    ,
    size_t log_rounds = 10
    )
    if (
    isOutputRange!(Out, char)
    )

Parameters

output Out

output range taking chars

log_rounds size_t

log base 2 of number of rounds (i.e., number of rounds is 2 ^^ log_rounds) Minimum 4 and maximum 31.

Meta