Autonomous security and compliance scanning agent for git repositories. Features: SAST (Semgrep), SBOM (Syft), CVE monitoring (OSV.dev/NVD), GDPR/OAuth pattern detection, LLM triage, issue creation (GitHub/GitLab/Jira), PR reviews, and Dioxus fullstack dashboard. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
11 lines
256 B
Rust
11 lines
256 B
Rust
use sha2::{Digest, Sha256};
|
|
|
|
pub fn compute_fingerprint(parts: &[&str]) -> String {
|
|
let mut hasher = Sha256::new();
|
|
for part in parts {
|
|
hasher.update(part.as_bytes());
|
|
hasher.update(b"|");
|
|
}
|
|
hex::encode(hasher.finalize())
|
|
}
|