Quickly destroy an encrypted home directory without recovery

    I want to share a recipe with the Habrasociety that can be useful when working with leak-sensitive information.

    If you use Ubuntu and ecryptfs to encrypt the user's home directory, the following command will very quickly make your data unsuitable for recovery even by thermorectal cryptanalysis with one caveat - if you managed to run the command before the physical removal of your computer.

    /bin/sh -c '/usr/bin/shred -uf /home/username/.ecryptfs/wrapped-passphrase && /usr/bin/gnome-session-save --force-logout'

    You can even make a start button for this command and assign it a HotKey.

    Also popular now: