Skip to main content

Crate nozomi

Crate nozomi 

Source
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

VariantStandardPasses
Method::PseudoRandomRandom data1
Method::HmgiS5HMGI S52
Method::Afssi5020AFSSI 50203
Method::Dod522022MEDoD 5220.22-M (ME)3
Method::RcmpTssitOpsIIRCMP TSSIT OPS-II7
Method::Dod522022MECEDoD 5220.22-M (ECE)7
Method::GutmannGutmann35

§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

FeatureDescription
dry-runSimulate deletions without writing to disk
verifyRead back the last overwrite pass to confirm correctness
analyzeInspect the pass schedule of a Method before running it
error-stackUse error_stack for richer error context (deprecated, will be removed in 4.0.0)
logEmit 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§

SecureDeleteDeprecated
Secure Delete object : backbone of

Enums§

DeleteEvent
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§

EventSink
Sink for deletion execution events.

Type Aliases§

Result
A Result alias that fixes the error type to Error.