calculateHash method

String calculateHash(
  1. String hashValues
)

Implementation

String calculateHash(String hashValues) {
  String hash;
  List<int> hashList;
  var k = SHA3(256, SHA3_PADDING, 256);
  k.update(utf8.encode(hashValues));
  hashList = k.digest();
  hash = hex.encode(hashList);
  return hash;
}