发布时间:2023-03-09 17:50:06来源:本站阅读(1150)
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
1543
1610
1481
1112
1178
1610
642
1512
1163
2139
10370
6341
5887
5467
4962
4657
3889
3782
3699
3614