Skip to content

Commit 1426561

Browse files
authored
Suppress codeql[cs/weak-crypto] in MetadataHelper.cs (#2278)
1 parent b3c93cb commit 1426561

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/EntityFramework/Core/Common/Utils/MetadataHelper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,7 @@ internal static HashAlgorithm CreateMetadataHashAlgorithm(double schemaVersion)
765765
if (schemaVersion < XmlConstants.EdmVersionForV2)
766766
{
767767
// v1 and v1.1 use old hash to remain compatible
768+
// codeql[cs/weak-crypto] MD5CryptoServiceProvider is not used for cryptography/security purposes and we do it only for v1 and v1.1 for compatibility reasons.
768769
hashAlgorithm = new MD5CryptoServiceProvider();
769770
}
770771
else

0 commit comments

Comments
 (0)