envseal 0.3.6

Write-only secret vault with process-level access control — post-agent secret management
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Invariant: hex encoding of empty input is empty string.
use envseal::guard;

#[test]
fn hex_encode_empty() {
    // hash_binary on an empty file should still produce a valid 64-char hash
    let dir = tempfile::tempdir().unwrap();
    let path = dir.path().join("empty");
    std::fs::write(&path, b"").unwrap();
    let hash = guard::hash_binary(&path).unwrap();
    assert_eq!(
        hash.len(),
        64,
        "Fix: SHA-256 of empty input is 64 hex chars"
    );
}