发布时间:2023-03-09 17:50:06来源:本站阅读(1249)
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
1734
1982
1842
1900
2086
1696
1397
1230
1962
1874
10752
6519
6080
5629
5152
4818
4099
3941
3879
3800