isSHA256 static method

bool isSHA256(
  1. String s
)

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

Implementation

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