发布时间:2023-03-09 17:50:06来源:本站阅读(1395)
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
1478
2145
2075
1919
1556
1866
1425
1388
1889
1122
11491
6767
6348
5891
5416
5084
4378
4178
4139
4055