029415
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
029415
index 9c9d76a..b641d21 100644
029415
--- a/setuptools/package_index.py
029415
+++ b/setuptools/package_index.py
029415
@@ -232,7 +232,10 @@ class HashChecker(ContentChecker):
029415
 
029415
     def __init__(self, hash_name, expected):
029415
         self.hash_name = hash_name
029415
-        self.hash = hashlib.new(hash_name)
029415
+        if hash_name == 'md5':
029415
+            self.hash = hashlib.new(hash_name, usedforsecurity=False)
029415
+        else:
029415
+            self.hash = hashlib.new(hash_name)
029415
         self.expected = expected
029415
 
029415
     @classmethod