发布时间:2023-03-09 17:50:06来源:本站阅读(1154)
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
2366
1173
1146
1983
1654
2094
1696
1652
1751
1348
10380
6344
5890
5470
4965
4660
3894
3786
3702
3617