sha256ofString function

String sha256ofString(
  1. String input
)

Implementation

String sha256ofString(String input) {
  final bytes = utf8.encode(input);
  final digest = sha256.convert(bytes);
  return digest.toString();
}