发布时间:2023-03-09 17:50:06来源:本站阅读(1153)
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
6342
1747
1139
1617
1812
1699
1741
1063
1782
1992
10375
6342
5889
5468
4963
4659
3892
3785
3701
3615