# Nozomi A Rust library that wipe all file or folder. \ This library includes most of the secure deletion methods of the [Eraser](https://eraser.heidi.ie) for Windows software. # Add to your project ```toml [dependencies] nozomi = "2.0.2" ``` ## Test libraries ### Prerequisites ```shell cargo install cargo-nextest --locked ``` ### Library test ```shell git clone https://github.com/Sans-Atout/Nozomi.git cd Nozomi chmod +x test.sh ./test.sh ``` ## Code example ### Erase one file with Pseudo Random method ```rust use nozomi; use nozomi::OverwriteMethod::Afssi5020; fn main() { match nozomi::erase_file("path_to_file", Afssi5020){ Ok(info) => println!("{}",info), Err(error) => println!("{}",error) }; } ``` ### Erase one folder with Pseudo Random method ```rust 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) }; } ``` # [Changelog](CHANGELOG.md) # [Contributing](CONTRIBUTING.md) # Erase Method 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 : ![explanation of diagram](images/explanation.png) ## [Pseudo Random](https://www.lifewire.com/data-sanitization-methods-2626133#toc-random-data) ![pseudo random erase method](images/pseudo_random.png) ## [Gutmann](https://en.wikipedia.org/wiki/Gutmann_method) ![gutmann erase method](images/gutmann.png) ## [Hmgi S5](https://www.bitraser.com/knowledge-series/data-destruction-standards-and-guidelines.php) ![HMGI S5 erase method](images/hmgi_s5.png) ## [DOD 522022 MECE](https://www.bitraser.com/article/DoD-5220-22-m-standard-for-drive-erasure.php) ![DOD 522022 MECE erase method](images/dod_522022_mece.png) ## [DOD 522022 ME](https://www.bitraser.com/article/DoD-5220-22-m-standard-for-drive-erasure.php) ![DOD 522022 ME erase method](images/DOD_522022_ME.png) ## [AFSSI 5020](https://www.lifewire.com/data-sanitization-methods-2626133#toc-afssi-5020) ![AFSSI 5020 erase method](images/AFSSI_5020.png) ## [RCMP TSSIT OPS II](https://www.datadestroyers.eu/technology/rcmp_tssit_ops-2.html) ![RCMP TSSIT OPS II](images/RCMP_TSSIT_OPS_II.png)