hashMessage function

Future<String> hashMessage(
  1. String message
)

Implementation

Future<String> hashMessage(String message) async {
  final result = (await crypto.Sha256().hash(utf8.encode(message))).bytes;
  return hex.encode(result);
}