isSHA1 static method

bool isSHA1(
  1. String s
)

检验字符串是否是SHA1编码字符

Implementation

static bool isSHA1(String s) =>
    hasMatch(s, r'(([A-Fa-f0-9]{2}\:){19}[A-Fa-f0-9]{2}|[A-Fa-f0-9]{40})');