发布时间:2023-03-09 17:50:06来源:本站阅读(1314)
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
1272
1802
2382
1780
1392
1371
1674
1962
2019
2140
10982
6624
6184
5738
5253
4916
4210
4026
3983
3885