Advertisement
henrydenhengst

Install TOMB for data encryption on Ubuntu 14.04 LTS

Dec 31st, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.49 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. # Install TOMB for data encryption on Ubuntu 14.04 LTS
  4. # Source of Inspiration: https://www.youtube.com/watch?v=CMLJmfjCaGM
  5. #
  6. # MAKE SURE YOU RUN THIS SCRIPT BEING ROOT!!!
  7. #
  8. # Check root privileges
  9. if [[ $EUID -ne 0 ]]; then
  10.    echo "This script must be run as root"
  11.    exit 1
  12. fi
  13. #
  14. # install some programs that are needed
  15. apt-get install dcfldd steghide qrencode mlocate swish++ unoconv haveged zsh gnupg cryptsetup pinentry-curses wget -y
  16. # switch off swap for security
  17. swapoff -a
  18. # goto Downloads directory
  19. cd Downloads
  20. # download tomb
  21. wget https://files.dyne.org/tomb/tomb-2.3.tar.gz
  22. # extract tomb
  23. tar xvfz tomb-2.3.tar.gz
  24. # goto tomb install directory
  25. cd tomb-2.3
  26. # install tomb
  27. sudo make install
  28. #
  29. # Fine done installing!!!
  30. # Now how to make this work as an example
  31. #
  32. # make a tomb of 20 Gb pretending being an ISO file or something else
  33. tomb dig -s 20000 secret.iso
  34. echo "this may take some time depending on your computer CPU speed....."
  35. # create a new key and set its password
  36. tomb forge secret.key
  37. echo "this may take some time depending on your computer CPU speed....."
  38. # format the tomb, lock it with key
  39. tomb lock -k secret.key secret.iso
  40. # open the tomb using the key and password
  41. tomb open secret.iso -k secret.key
  42. # make sure you as a user have the right to use the tomb
  43. # because the tomb needs to be created by root!
  44. chown <your-username> /media/secret/
  45. # close the tomb(s)
  46. tomb close
  47. # hide the key in a jpeg image
  48. tomb bury -k secret.key your.jpg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement