hash method

Future<String> hash(
  1. String message
)
override

Hashes a given message.

Implementation

Future<String> hash(String message) async {
  final hash = await _hasher.hash(utf8.encode(message));
  return base64Encode(hash.bytes);
}