发布时间:2023-03-09 17:50:06来源:本站阅读(1112)
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
1554
1877
1974
1116
1785
1159
2265
1176
1142
1643
10200
6270
5811
5380
4880
4568
3788
3618
3617
3530