detect-secrets
An enterprise tool for detecting secrets and API keys within codebases with baseline audits.
Why consider detect-secrets?
detect-secrets is an open-source secret scanning framework written in Python by Yelp. detect-secrets uses heuristic entropy algorithms and regex plugins to flag API tokens, private keys, and passwords before commit, maintaining a project baseline file to prevent false positives.
Learn detect-secrets by building
Practical setup notes, real use cases, and copy-ready examples in one focused guide.
In this guide2 sections
Overview of detect-secrets
detect-secrets audits codebases for committed private keys, JWT tokens, and database passwords.
Quickstart
pip install detect-secretsdetect-secrets scan > .secrets.baselinedetect-secrets audit .secrets.baselinedetect-secrets is licensed under the Apache License Version 2.0.
Related tools
More options with a similar category or technology profile.
diskus
Minimal, fast alternative to du -sh written in Rust using multi-threaded directory traversal.
peco
Simplistic interactive filtering tool for Unix pipelines, process lists, and file trees.
Dapr CLI
Command-line tool for managing Dapr distributed application runtime environments and sidecars.
Freeze
Generate beautiful image screenshots and SVGs of code snippets and terminal outputs.