From 4927dcd2b2b957eb1ef79b19759568b875ebfbf6 Mon Sep 17 00:00:00 2001 From: walsoup Date: Wed, 10 Jun 2026 12:30:26 +0100 Subject: [PATCH] security: mark MD5 hash as non-security usedforsecurity=False (fixes bandit B324) --- ssh-audit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh-audit.py b/ssh-audit.py index 8b67387..dc87268 100755 --- a/ssh-audit.py +++ b/ssh-audit.py @@ -1028,7 +1028,7 @@ def __init__(self, fpd): @property def md5(self): # type: () -> text_type - h = hashlib.md5(self.__fpd).hexdigest() + h = hashlib.md5(self.__fpd, usedforsecurity=False).hexdigest() r = u':'.join(h[i:i + 2] for i in range(0, len(h), 2)) return u'MD5:{0}'.format(r)