Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- # Install TOMB for data encryption on Ubuntu 14.04 LTS
- # Source of Inspiration: https://www.youtube.com/watch?v=CMLJmfjCaGM
- #
- # MAKE SURE YOU RUN THIS SCRIPT BEING ROOT!!!
- #
- # Check root privileges
- if [[ $EUID -ne 0 ]]; then
- echo "This script must be run as root"
- exit 1
- fi
- #
- # install some programs that are needed
- apt-get install dcfldd steghide qrencode mlocate swish++ unoconv haveged zsh gnupg cryptsetup pinentry-curses wget -y
- # switch off swap for security
- swapoff -a
- # goto Downloads directory
- cd Downloads
- # download tomb
- wget https://files.dyne.org/tomb/tomb-2.3.tar.gz
- # extract tomb
- tar xvfz tomb-2.3.tar.gz
- # goto tomb install directory
- cd tomb-2.3
- # install tomb
- sudo make install
- #
- # Fine done installing!!!
- # Now how to make this work as an example
- #
- # make a tomb of 20 Gb pretending being an ISO file or something else
- tomb dig -s 20000 secret.iso
- echo "this may take some time depending on your computer CPU speed....."
- # create a new key and set its password
- tomb forge secret.key
- echo "this may take some time depending on your computer CPU speed....."
- # format the tomb, lock it with key
- tomb lock -k secret.key secret.iso
- # open the tomb using the key and password
- tomb open secret.iso -k secret.key
- # make sure you as a user have the right to use the tomb
- # because the tomb needs to be created by root!
- chown <your-username> /media/secret/
- # close the tomb(s)
- tomb close
- # hide the key in a jpeg image
- tomb bury -k secret.key your.jpg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement