keyhog-core 0.5.73

keyhog-core: shared data model and detector specifications for the KeyHog secret scanner
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Oracle: RFC 4648 padded base64 for "Hello" decodes to known bytes.

use keyhog_core::decode_standard_base64;

#[test]
fn encoding_decodes_standard_padded_base64() {
    assert_eq!(
        decode_standard_base64("SGVsbG8=").expect("valid base64"),
        b"Hello".as_slice()
    );
}