发布时间:2023-03-09 17:50:06来源:本站阅读(1038)
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
1400
863
1641
1148
1613
1020
1573
1592
1518
1086
9912
6137
5683
5254
4722
4436
3605
3487
3486
3394