Skip to content

Commit

Permalink
* fix violation of Roslyn analyzer rule CA1872 @ ClientRequester.cs
Browse files Browse the repository at this point in the history
@ c#/crawler
  • Loading branch information
n0099 committed Dec 8, 2024
1 parent c7bbc83 commit f44ad76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c#/crawler/src/Tieba/ClientRequester.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private async Task<HttpResponseMessage> PostJson(
return acc;
}) + "tiebaclient!!!";
#pragma warning disable CA5351 // Do Not Use Broken Cryptographic Algorithms
var signatureMd5 = BitConverter.ToString(MD5.HashData(Encoding.UTF8.GetBytes(signature))).Replace("-", "");
var signatureMd5 = Convert.ToHexString(MD5.HashData(Encoding.UTF8.GetBytes(signature)));
#pragma warning restore CA5351 // Do Not Use Broken Cryptographic Algorithms
postParamPairs.Add(KeyValuePair.Create("sign", signatureMd5));

Expand Down

0 comments on commit f44ad76

Please sign in to comment.