发布时间:2023-03-09 17:50:06来源:本站阅读(1244)
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
1748
1360
1278
1224
2112
2508
1278
2089
2185
1849
10739
6511
6071
5619
5143
4813
4086
3932
3868
3789