Crates.io | nozomi |
lib.rs | nozomi |
version | 2.0.2 |
source | src |
created_at | 2022-06-22 20:05:36.03044 |
updated_at | 2024-07-23 21:35:16.004519 |
description | Equivalent of the Linux shred command but in rust and library. Allows you to securely erase data from a hard drive. |
homepage | |
repository | https://github.com/Sans-Atout/Nozomi/ |
max_upload_size | |
id | 611100 |
size | 409,945 |
A Rust library that wipe all file or folder.
This library includes most of the secure deletion methods of the Eraser for Windows software.
[dependencies]
nozomi = "2.0.2"
cargo install cargo-nextest --locked
git clone https://github.com/Sans-Atout/Nozomi.git
cd Nozomi
chmod +x test.sh
./test.sh
use nozomi;
use nozomi::OverwriteMethod::Afssi5020;
fn main() {
match nozomi::erase_file("path_to_file", Afssi5020){
Ok(info) => println!("{}",info),
Err(error) => println!("{}",error)
};
}
use nozomi;
use nozomi::OverwriteMethod::Afssi5020;
fn main() {
match nozomi::erase_folder("path_to_folder", Afssi5020, false){
Ok(info) => println!("{}",info),
Err(error) => println!("{}",error)
};
}
Here are all the methods available and an illustrative diagram for each suppression method.
You can see below an explanation of one brick of the scheme :