发布时间:2023-03-09 17:50:06来源:本站阅读(1178)
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
1572
1339
1656
2096
1181
1143
3177
697
1034
1151
10482
6391
5950
5508
5014
4700
3947
3823
3755
3665