Last active
December 4, 2015 11:33
-
-
Save webmaster128/3f96cef287403ce82c04 to your computer and use it in GitHub Desktop.
Secure erase the fast way. Erases a HDD by encrypting zeros
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PASS=$(cat /dev/urandom | tr -cd 0-9a-f | head -c 64) \ | |
| openssl enc -aes256 -pass env:PASS -iv $(cat /dev/urandom | tr -cd 0-9a-f | head -c 32) -in /dev/zero | sudo dd of=/dev/sdX bs=4096 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment