Returns SHA-256 hash of data.
data
static Uint8List hash(Uint8List data) { return Uint8List.fromList(sha256.convert(data).bytes); }