githubvideo.mov
- This must take place on a Linux Machine
- USB must be formatted to ext4
- OpenSSL must be installed
sudo apt install openssl - Linux Headers must be installed
sudo apt install linux-headers-$(uname -r) - Inotify Tools must be installed
sudo apt install inotify-tools - A C compiler must be installed as well as Makefile tools
- It is crucial that all of the paths in the
main.c,script.sh,encrypt.c, anddecrypt.care altered to match your device.
- Generate your public and private key. In the project's Directory, run
openssl genrsa -out private.key 2048then runopenssl rsa -in private.key -pubout -out public.keyThis creates a public and private key pair using RSA encryption. - Compile
encrypt.canddecrypt.cand make both exectutable with thechmod +xcommand. - In the terminal, in the projects directory, run
makethensudo make loadThis creates a module that is then loaded into the kernel. - Now, dragging and dropping a file into the USB should encrypt the file. Note that the only way to decrypt the file is by dragging and dropping it to the desktop.