发布时间:2023-03-09 17:50:06来源:本站阅读(1280)
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
1282
1223
2104
2110
1972
1315
1386
1964
1278
2231
10863
6571
6136
5689
5201
4862
4159
3985
3929
3839