Crates.io | secure_remove |
lib.rs | secure_remove |
version | 2.2.3 |
source | src |
created_at | 2023-02-15 16:01:01.550819 |
updated_at | 2023-02-16 19:47:09.333736 |
description | Securely remove files and directories |
homepage | https://github.com/saizo80/Secure-Remove/ |
repository | https://github.com/saizo80/Secure-Remove/ |
max_upload_size | |
id | 785817 |
size | 56,093 |
A terminal program for securely removing files with sensitive data, written in Rust.
While using the Eraser software for windows, I needed to be able to securely erase sensitive files from the terminal, and thus be able to call it in scripts. So I decided to write my own application to serve that purpose. I originally wrote the script in C#, but decided to move to Rust for the speed benefits.
The project is uploaded to Crates.io and can be seen here.
On GitHub select your architecture from the latest release and unzip the archive.
You will have the file named srm
(srm.exe
on Windows) I recommend
putting the file in your path so you can do a simple command line call srm
.
The easier option, however is to install with Cargo. Simply run the command:
cargo install secure_remove
This will download the crate from crates.io, build, and automatically add the executable to your path.
You can also download the source code and install from scratch if you would like. You will need cargo installed on your system.
git clone https://github.com/saizo80/Secure-Remove.git
cargo install --path Secure-Remove
The simplest scheme of using srm is srm [Options] [Target(s)]
.
The functions are very similar to what you can do with regular rm
, except (for now) you cannot use wildcards inside of a path on Windows.
So srm ./*
would be okay, whereas srm .\*.txt
would not be okay.
However, because of the way that bash and zsh auto expand wildcards, on Linux and Mac srm ./*.txt
is perfectly fine to use.
Other functions you can see by running srm --help
.
I, the author, am not a security expert. Therefore this project comes with no guarantees that file recovery will be impossible.
However, I have tried, to the best of my ability, to make this a secure deletion program.
The data deleted by this program cannot be recovered by oridinary methods. Please make sure you know what you are doing being using.