Weak encryption algorithm (RC4) detected.
- Rule ID: ruby_lang_weak_encryption_rc4
- Languages: ruby
- Source: weak_encryption_rc4.yml
A weak encryption library can lead to data breaches and greater security risk.
According to OWASP, RC4 (Rivest Cipher 4) is considered a weak encryption algorithm and therefore shouldn't be used.
❌ Avoid libraries and algorithms with known weaknesses:
RC4.new("weak password encryption")
✅ Instead, we recommend using bcrypt:
OWASP Top 10
To skip this rule during a scan, use the following flag
bearer scan /path/to/your-project/ --skip-rule=ruby_lang_weak_encryption_rc4
To run only this rule during a scan, use the following flag
bearer scan /path/to/your-project/ --only-rule=ruby_lang_weak_encryption_rc4
Ready to take the next step? Learn more about Bearer Cloud.