Skip to main contentModule secrets
Source pub use gitleaks::initialize_gitleaks_config;
- gitleaks
- RedactionResult
- A result containing both the redacted string and the mapping of redaction keys to original secrets
- redact_password
- Redacts a specific password value from the content without running secret detection
- redact_secrets
- Redacts secrets from the input string and returns both the redacted string and redaction mapping
- restore_secrets
- Restores secrets in a redacted string using the provided redaction map