Weak hashing library (SHA1) detected.
- Rule ID: python_lang_weak_hash_sha1
- Languages: python
- Source: weak_hash_sha1.yml
A weak hashing library can lead to data breaches and greater security risk.
According to OWASP, MD5 and its predecessors are considered weak hash algorithms and therefore shouldn't be used.
❌ Avoid libraries and algorithms with known weaknesses:
✅ Instead, we recommend using sha256:
OWASP Top 10
To skip this rule during a scan, use the following flag
bearer scan /path/to/your-project/ --skip-rule=python_lang_weak_hash_sha1
To run only this rule during a scan, use the following flag
bearer scan /path/to/your-project/ --only-rule=python_lang_weak_hash_sha1
Ready to take the next step? Learn more about Bearer Cloud.