hashMessage method

String hashMessage(
  1. String message
)

Implementation

String hashMessage(String message) {
  return hex.encode(
    SHA256Digest().process(
      Uint8List.fromList(
        utf8.encode(message),
      ),
    ),
  );
}