发布时间:2023-03-09 17:50:06来源:本站阅读(1346)
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
1974
1918
1268
1763
2519
2027
1632
2020
2254
2388
11168
6678
6242
5797
5314
4974
4264
4082
4040
3945