sha256Hash static method

Hash sha256Hash(
  1. Uint8List data
)

Calculate single SHA256 hash

Implementation

static Hash sha256Hash(Uint8List data) {
  final digest = sha256.convert(data);
  return Hash.fromBytes(Uint8List.fromList(digest.bytes));
}