isSHA256 static method

bool isSHA256(
  1. String? s
)

验证是否为 SHA-256 格式(64 位十六进制,或冒号分隔 32 字节形态)。

Implementation

static bool isSHA256(String? s) =>
    s != null && s.isNotEmpty && _sha256RegExp.hasMatch(s);