mirror of
https://github.com/jtesta/ssh-audit.git
synced 2026-06-14 16:52:26 +02:00
Added usedforsecurity=False to hashlib.md5() call to suppress security scanner warning.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
"""
|
"""
|
||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (C) 2017-2021 Joe Testa (jtesta@positronsecurity.com)
|
Copyright (C) 2017-2026 Joe Testa (jtesta@positronsecurity.com)
|
||||||
Copyright (C) 2017 Andris Raugulis (moo@arthepsy.eu)
|
Copyright (C) 2017 Andris Raugulis (moo@arthepsy.eu)
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
@@ -32,7 +32,7 @@ class Fingerprint:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def md5(self) -> str:
|
def md5(self) -> str:
|
||||||
h = hashlib.md5(self.__fpd).hexdigest()
|
h = hashlib.md5(self.__fpd, usedforsecurity=False).hexdigest()
|
||||||
r = ':'.join(h[i:i + 2] for i in range(0, len(h), 2))
|
r = ':'.join(h[i:i + 2] for i in range(0, len(h), 2))
|
||||||
return 'MD5:{}'.format(r)
|
return 'MD5:{}'.format(r)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user