发布时间:2023-03-09 17:50:06来源:本站阅读(1111)
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
1052
2264
1876
911
1444
1900
1606
1605
1454
1066
10197
6269
5810
5379
4878
4565
3787
3616
3615
3528