MD5 Already broken 1 place See details
Broken hash function
`hashlib.md5()` or `hashlib.sha1()`. Both have practical collisions. Where the call is annotated `usedforsecurity=False` the finding is recorded as inventory instead.
This is already unsafe today, with no quantum computer involved. Practical chosen-prefix collisions exist; MD5 has no remaining security as a digest.
What to do. SHA-256, or SHA-384 for long-lived signatures.
-
src/borg/testsuite/helpers/datastruct_test.py:11
test path
assert hashlib.md5(msgpack.packb(d)).hexdigest() == "fc78df42cd60691b3ac3dd2a2b39903f"