发布时间:2023-03-09 17:50:06来源:本站阅读(1316)
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
1406
2454
1762
2169
1932
951
954
1250
1290
997
11001
6628
6186
5742
5257
4921
4213
4032
3987
3889