发布时间:2023-03-09 17:50:06来源:本站阅读(1095)
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
958
670
1907
1832
1445
1615
2334
1697
1683
2095
10146
6236
5784
5356
4842
4539
3745
3589
3589
3499