HL100¶
MD4, MD5, SHA, and SHA1 hashing algorithms should not be used for obfuscating or protecting data as they are cryptographically weak (have collisions).
Examples¶
The following examples would raise a warning:
import hashlib
hashlib.new('sha1')
import hashlib
hashlib.sha1()
Fix¶
Use another hashing algorithm, e.g. blake2