bytes2Hash static method

String bytes2Hash(
  1. List<int> bytes
)

This function takes a list of bytes and returns a hash string

Implementation

static String bytes2Hash(List<int> bytes) {
  String x = "";
  for (int byte in bytes) {
    x += byte.toRadixString(16).padLeft(2, '0');
  }

  return x;
}