sha1SumStr static method

List<int> sha1SumStr(
  1. String input
)

This functions returns the bytes instead of a hash string

Implementation

static List<int> sha1SumStr(String input) {
  return sha1.convert(utf8.encode(input)).bytes;
}