发布时间:2023-03-09 17:50:06来源:本站阅读(1357)
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
1325
2170
1984
1384
1469
1864
1333
4048
1987
1717
11210
6686
6250
5805
5321
4985
4275
4092
4048
3957