convertToSHA1 function

String convertToSHA1(
  1. String input
)

Implementation

String convertToSHA1(String input) {
  final bytes = utf8.encode(input);
  final digest = sha1.convert(bytes);

  return digest.toString();
}