发布时间:2023-03-09 17:50:06来源:本站阅读(1067)
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
1647
1419
1598
610
1335
1519
1016
1916
1725
1167
10020
6182
5732
5308
4790
4488
3676
3536
3535
3445