发布时间:2023-03-09 17:50:06来源:本站阅读(1056)
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
999
1101
1821
1062
1129
1497
1012
1435
1776
1701
9981
6165
5714
5285
4766
4466
3649
3516
3514
3423