# `ripsecrets` Command-line tool to prevent committing secret keys into source code. 1. [TL;DR](#tldr) 1. [Further readings](#further-readings) 1. [Sources](#sources) ## TL;DR
Setup ```sh brew install 'ripsecrets' cargo install --git 'https://github.com/sirwart/ripsecrets' --branch 'main' ```
Usage ```sh ripsecrets ripsecrets 'path/to/file.1' 'file2' 'dir1' ```
## Further readings - [Main repository] Alternatives: - [`detect-secrets`][detect-secrets] - [gitleaks] - [trufflehog] ### Sources [detect-secrets]: detect-secrets.md [gitleaks]: gitleaks.md [trufflehog]: trufflehog.md [main repository]: https://github.com/sirwart/ripsecrets