keyhog-scanner 0.5.40

keyhog-scanner: high-performance SIMD-accelerated secret detection engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Credentials ending in EXAMPLE are known examples.

use keyhog_scanner::context::is_known_example_credential;

#[test]
fn context_example_credential_example_suffix() {
    assert!(
        is_known_example_credential(concat!("AK", "IAIOSFODNN7EXAMPLE")),
        "AWS documentation EXAMPLE suffix must suppress"
    );
    assert!(
        !is_known_example_credential(concat!("AK", "IAIOSFODNN7REALKEY")),
        "real-looking AKIA body must not auto-suppress"
    );
}