simple-detect-secrets
simple-detect-secrets tries to find secrets (passwords, auth tokens) in a code base.
Simply run uvx simple-detect-secrets.
Developing
uv sync --locked
uv run simple-detect-secrets scan
uv run pytest tests
Build the source distribution and wheel with uv build. Install the optional
word-list support with uv sync --extra word_list.
Caveats
This is not meant to be a sure-fire solution to prevent secrets from entering the codebase. Only proper developer education can truly do that. This pre-commit hook merely implements several heuristics to try and prevent obvious cases of committing secrets.
Things that won't be prevented
- Multi-line secrets
- Default passwords that don't trigger the
KeywordDetector(e.g.login = "hunter2")
Notes
This is an old fork of Yelp's detect-secrets.
This is a command line tool:
- never calls the network
- doesn't obfuscate/hash the secrets that it finds
- doesn't have plugins
Metadata
Release files for simple-detect-secrets 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| simple_detect_secrets-0.0.1.tar.gz | 42.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| simple_detect_secrets-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 101.1 kB
Release files / simple_detect_secrets-0.0.1.tar.gz
| Download URL | simple_detect_secrets-0.0.1.tar.gz |
|---|---|
| Size | 42.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7e1684f9a81d7bc1b677b7453c601f5496bf05237a9d51eee9a3be3381fccc9
|
|
BLAKE2b-256 checksum How to use checksums |
54e35f000ed514bd3b4f9404c4058c29b497b96d0b3a77320da56f5a5570c53b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / simple_detect_secrets-0.0.1-py3-none-any.whl
| Download URL | simple_detect_secrets-0.0.1-py3-none-any.whl |
|---|---|
| Size | 58.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce14a8cf0f334684fa448b32ba1287b6665f7103afe895a841357c4f08b4c923
|
|
BLAKE2b-256 checksum How to use checksums |
3afd3be28593eac52606d702c5a9175fb1594a4f09106ec85214d8783016f4c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|