A secure, free, cross-platform and open-source drive wiping utility.
Should work with any HDD, SSD (read limitations) and flash drives.
The usual methods for wiping (or sanitization) a drive, including those (allegedly) used by government agencies are based on destructive writes. In other words, on overwriting existing data with multiple layers of randomly generated data or some static pattern. This is basically what this tool does.
There are other similar applications around (including multiple built-in Linux tools). Most of them are proprietary, or slow, or non-cross-platform, which was a requirement for me. So I wrote this application.
The initial active development phase is done. I have been using the application for some time for personal needs on all supported platforms. It does what it was designed to do. Didn't have to deal with forensics experts yet though. I still make some additions/changes occasionally, but there's no exact roadmap. I would love to learn about other people's experience with the application. Let me know if you have any issues!
Current release: v0.8.2 Changelog
Download and unzip binaries for your OS:
Or install lethe
from sources using the latest Rust toolchain:
cargo install lethe
lethe
is a CLI (command-line interface). Run it without parameters or use help
command to display usage information.
lethe help
You can also use help
command to get more information about any particular command.
lethe help wipe
Note that lethe
operates on a low level and will require a root/administrator access (e.g. sudo
) to work with any real drives.
Measured on Macbook Pro 2015 with macOS 10.14.4 (Mojave) using a Sandisk 64G Flash Drive with USB 3.0 interface. OS recommended block size is 128k.
Zero fill
Command | Block size | Time taken (seconds) |
---|---|---|
dd if=/dev/zero of=/dev/rdisk3 bs=131072 |
128k | 2667.21 |
lethe wipe --scheme=zero --blocksize=128k --verify=no /dev/rdisk3 |
128k | 2725.77 |
dd if=/dev/zero of=/dev/rdisk3 bs=1m |
1m | 2134.99 |
lethe wipe --scheme=zero --blocksize=1m --verify=no /dev/rdisk3 |
1m | 2129.61 |
Random fill
Command | Block size | Time taken (seconds) |
---|---|---|
dd if=/dev/urandom of=/dev/rdisk3 bs=131072 |
128k | 4546.48 |
lethe wipe --scheme=random --blocksize=128k --verify=no /dev/rdisk3 |
128k | 2758.11 |
Lethe
is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.