发布时间:2023-03-09 17:50:06来源:本站阅读(1211)
public static byte[] HmacSHA256(string secret, string signKey)
{
using var mac = new HMACSHA256(Encoding.UTF8.GetBytes(signKey));
byte[] hash = mac.ComputeHash(Encoding.UTF8.GetBytes(secret));
return hash;
}
关键字: HMACSHA256
1800
1664
889
2339
1764
1800
1668
2442
836
1134
10605
6461
6016
5567
5087
4758
4016
3881
3811
3731