Converts String data to sha256 hash value and returns it.
String sha256Hash(String str) { return sha256.convert(utf8.encode(str)).toString(); }