toSHA256 method
Convert to SHA256 hash.
Set the password for encoding to password
.
Implementation
String toSHA256(String password) {
final hmacSha256 = Hmac(sha256, utf8.encode(password));
return hmacSha256.convert(utf8.encode(this)).toString();
}