As a long-year user of Truecrypt, whenever I set up a new system, Truecrypt has been among the first pieces of Software that I install. By the time I acquired the new Raspberry 2, I was willing to give Veracrypt a shot. It is one the follow-up projects for the discontinued Truecrypt. Here I will report on how I got it running.
My system was an up-to-date Raspbian. We need two additional dependencies, starting with
sudo apt-get install makeself
One also needs the FUSE library
sudo aptitude install libfuse-dev
You will have to download the Veracrypt sources as well as the sources of wxWidgets (although we build the CLI version only, it is still required to compile). Let’s assume you put them in
Now unpack the files
cd veracrpyt bzip2 -d veracrypt_1.0f-1_Source.tar.bz2 tar xfv veracrypt_1.0f-1_Source.tar cd mkdir wxwidgets cd wxwidgets bzip2 -d wxWidgets-3.0.2.tar.bz2 tar xfv wxWidgets-3.0.2.tar
Now build Vera, which again takes a while… grab a coffee in the meantime.
cd /home/pi/vera/src/ make NOGUI=1 WX_ROOT=/home/pi/wxwidgets/wxWidgets-3.0.2/ wxbuild make NOGUI=1 WXSTATIC=1 sudo cp Main/veracrypt /usr/local/bin/
A volume can be created interactively on the command line. Be patient, creating takes some time.
veracrypt --create -m=nokernelcrypto
Mounting works just as with Truecrypt,
sudo veracrypt container.tc /path/to/mount/ -m nokernelcrypto
but… it’s no fun within an Raspberry Pi. Mounting takes forever… maybe related to the higher count of iterations in the key derivation.