sha256FromString function

Uint8List sha256FromString(
  1. String str
)

Implementation

Uint8List sha256FromString(String str) {
  sha256Hash.reset();
  final data = Uint8List.fromList(utf8.encode(str));
  return sha256Hash.process(data);
}