发布时间:2023-03-09 17:50:06来源:本站阅读(1399)
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
2080
4386
1765
1501
1882
1449
2135
2206
2314
1410
11510
6777
6356
5902
5426
5094
4386
4188
4149
4063