发布时间:2023-03-09 17:50:06来源:本站阅读(1061)
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
1907
922
1452
1972
1640
986
1628
1781
398
1950
9998
6175
5724
5299
4779
4480
3664
3527
3527
3435