发布时间:2023-03-09 17:50:06来源:本站阅读(1212)
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
1271
1824
944
1866
1651
1241
1551
889
1767
2014
10605
6461
6016
5567
5087
4758
4016
3881
3811
3731