Skip to main content

Module secrets

Module secrets 

Source

Re-exports§

pub use gitleaks::initialize_gitleaks_config;

Modules§

gitleaks

Structs§

RedactionResult
A result containing both the redacted string and the mapping of redaction keys to original secrets

Functions§

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