发布时间:2023-03-09 17:50:06来源:本站阅读(1182)
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
1948
1634
1311
1126
1343
1657
1739
719
1079
1589
10502
6400
5961
5515
5024
4706
3955
3830
3762
3676