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.c
are altered to match your device.
- Generate your public and private key. In the project's Directory, run
openssl genrsa -out private.key 2048
then runopenssl rsa -in private.key -pubout -out public.key
This creates a public and private key pair using RSA encryption. - Compile
encrypt.c
anddecrypt.c
and make both exectutable with thechmod +x
command. - In the terminal, in the projects directory, run
make
thensudo make load
This 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.