hashString method

Uint8List hashString(
  1. String str
)

Implementation

Uint8List hashString(String str) {
  final data = Uint8List.fromList(utf8.encode(str));
  return hash(data);
}