List<int> sha1(raw) { var byte; if (raw is List<int>) byte = raw; else if (raw is String) byte = utf8.encode(raw); return crypto.sha1.convert(byte).bytes; }