getHashedString static method

String getHashedString(
  1. String str
)

Implementation

static String getHashedString(String str){
  var bytes1 = utf8.encode(str);         // data being hashed
  var digest1 = sha256.convert(bytes1);

  return digest1.toString();
}