hmacSha256 static method
HMAC-SHA256 哈希
计算字符串的 HMAC-SHA256 哈希值
@param data 要哈希的数据 @param key 密钥 @return HMAC-SHA256 哈希值(十六进制字符串) @example
final hash = WSecret.hmacSha256('Hello World', 'secret');
print(hash); // 输出: HMAC-SHA256 哈希值
Implementation
static String hmacSha256(String data, String key) {
return WHash.hmacSha256(data, key);
}