envseal 0.3.4

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
//! Invariant: hashing the same file twice produces the same hash.
use envseal::guard;

#[test]
fn hash_binary_deterministic() {
    let dir = tempfile::tempdir().unwrap();
    let path = dir.path().join("det");
    std::fs::write(&path, b"deterministic content").unwrap();
    let h1 = guard::hash_binary(&path).unwrap();
    let h2 = guard::hash_binary(&path).unwrap();
    assert_eq!(h1, h2);
}