# `detect-secrets` Python module for detecting secrets within code bases. 1. [TL;DR](#tldr) 1. [Further readings](#further-readings) 1. [Sources](#sources) ## TL;DR
Setup ```sh brew install 'detect-secrets' pip install 'detect-secrets' ```
Usage ```sh detect-secrets scan detect-secrets scan --exclude-lines 'password = (blah|fake)' --exclude-files '.*\.signature$' ```
## Further readings - [Main repository] Alternatives: - [gitleaks] - [`ripsecrets`][ripsecrets] - [trufflehog] ### Sources [gitleaks]: gitleaks.md [ripsecrets]: ripsecrets.md [trufflehog]: trufflehog.md [main repository]: https://github.com/Yelp/detect-secrets