hashPassword static method

String hashPassword(
  1. String password, {
  2. String salt = "",
})

Implementation

static String hashPassword(String password, {String salt = ""}) {
  return sha256.convert((password + passwordSalt + salt).codeUnits).toString();
}