VeraCrypt is a fork of Truecrypt which allows you to created encrypted containers. This is particularly useful if you are using a third-party service for off-site backups.

This guide was tested on Raspbian Buster.

Requirements

  • Dependencies
  • wxWidgets 3.0
  • PKCS Headers
  • VeraCrypt

Install Dependencies

sudo apt install build-essential pkg-config gtk2.0-dev libfuse-dev

Compile wxWidgets

git clone https://github.com/wxWidgets/wxWidgets.git /usr/src/wxWidgets
cd /usr/src/wxWidgets
git checkout WX_3_0_BRANCH
./configure
make
sudo make install

PKCS Headers

wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/*.h -P /usr/src/pkcs/

Compile VeraCrypt

If you want a graphical interface, remove the “NOGUI=1” parameter.

git clone https://github.com/veracrypt/VeraCrypt.git /usr/src/VeraCrypt
cd /usr/src/VeraCrypt/src
make NOGUI=1 WXSTATIC=1 WX_ROOT=/usr/src/wxWidgets wxbuild
export PKCS11_INC=/usr/src/pkcs
make NOGUI=1 WXSTATIC=1
sudo mv /usr/src/VeraCrypt/src/Main/veracrypt /bin/veracrypt

Confirm Installation

$ veracrypt --version
VeraCrypt 1.24-Update3