发布时间:2023-03-09 17:50:06来源:本站阅读(1041)
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
1022
4732
1094
1968
1331
1619
1715
1119
917
1396
9938
6146
5692
5262
4732
4445
3616
3494
3493
3406