make static method

String make(
  1. String password, {
  2. int? rounds,
})

has the password using BCrypt technique

Hash.make('secret');
Hash.make('secret', rounds: 12);

Implementation

static String make(String password, {int? rounds}) {
  int cost = rounds ?? Hash.rounds;
  return BCrypt.hashpw(password, BCrypt.gensalt(logRounds: cost));
}