发布时间:2023-03-09 17:50:06来源:本站阅读(1281)
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
1637
1937
1647
1274
1281
1448
2261
1644
2634
2298
10867
6571
6137
5690
5201
4862
4159
3986
3930
3840