hash function

BinaryBlob hash(
  1. Uint8List data
)

Implementation

BinaryBlob hash(Uint8List data) {
  final hashed = sha256.convert(data).bytes;
  return Uint8List.fromList(hashed);
}