AuthPassword constructor

AuthPassword(
  1. String realPassword
)

Implementation

AuthPassword(String realPassword){
  _realPassword = realPassword;

  var bytes1 = utf8.encode(_realPassword);         // data being hashed
  var hashed = sha256.convert(bytes1);
  _maskedPassword = hashed.toString().substring(0, 10) + "A#1a";
}