Skip to content

Files

Latest commit

 

History

History
14 lines (8 loc) · 684 Bytes

B324.md

File metadata and controls

14 lines (8 loc) · 684 Bytes

Pattern: Use of insecure MD4/MD5 hash function in hashlib.new()

Issue: -

Description

hashlib.new() provides the ability to construct a new hashing object using the named algorithm. This can be used to create insecure hash functions like MD4 and MD5 if they are passed as algorithm names to this function.

MD4 and MD5 are no longer considered secure. Note that this might not be a problem for some use cases like checking file integrity. However, if you want to be be sure, switch to another hashing algorithm.

Further Reading