Expand description
§Nozomi
Nozomi is a Rust library for secure file deletion. It implements several industry-standard overwrite methods that prevent data recovery by overwriting file contents with specific byte patterns before removing the file from the filesystem.
§Supported sanitisation standards
| Variant | Standard | Passes |
|---|---|---|
Method::PseudoRandom | Random data | 1 |
Method::HmgiS5 | HMGI S5 | 2 |
Method::Afssi5020 | AFSSI 5020 | 3 |
Method::Dod522022ME | DoD 5220.22-M (ME) | 3 |
Method::RcmpTssitOpsII | RCMP TSSIT OPS-II | 7 |
Method::Dod522022MECE | DoD 5220.22-M (ECE) | 7 |
Method::Gutmann | Gutmann | 35 |
§Quick start
use nozomi::{DeleteRequest, DeleteMethod, Method};
let report = DeleteRequest::builder()
.path("/path/to/sensitive/file.txt")
.method(DeleteMethod::BuiltIn(Method::Gutmann))
.build()?
.run()?;
println!("Deleted {:?} using {}", report.path, report.method);§Optional features
| Feature | Description |
|---|---|
dry-run | Simulate deletions without writing to disk |
verify | Read back the last overwrite pass to confirm correctness |
analyze | Inspect the pass schedule of a Method before running it |
error-stack | Use error_stack for richer error context (deprecated, will be removed in 4.0.0) |
log | Emit trace-level log entries via the log facade |
Re-exports§
pub use api::delete::DeleteMethod;pub use api::delete::DeleteReport;pub use api::delete::DeleteRequest;pub use api::delete::DeleteRequestBuilder;
Modules§
- api
- Public API surface for the Nozomi library.
Structs§
- Secure
Delete Deprecated - Secure Delete object : backbone of
Enums§
- Delete
Event - Structured execution events emitted during a deletion run.
- Error
- Errors that can be produced by the Nozomi library.
- Method
- Identifies the overwrite algorithm to use when securely deleting a file.
Traits§
- Event
Sink - Sink for deletion execution events.