toSHA256 method

String toSHA256(
  1. String password
)

Give password to String and hash it with HMAC-SHA256.

Stringpasswordを与えてをHMAC-SHA256でハッシュ化します。

Implementation

String toSHA256(String password) {
  final hmacSha256 = Hmac(sha256, utf8.encode(password));
  return hmacSha256.convert(utf8.encode(this)).toString();
}