sha function
Implementation
Future<String> sha(String message) async {
// Convert the string message to bytes
List<int> bytes = utf8.encode(message);
// Compute the SHA-256 hash
Digest hash = sha256.convert(bytes);
// Convert the hash bytes to a hexadecimal string
String hashHex = hash.toString();
return hashHex;
}