You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Device driver that automates encrypting and decrypting files when moved to/from a USB drive.
githubvideo.mov
There are a few dependencies that must be met before this is possible
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, and decrypt.c are altered to match your device.
Building the device driver
Generate your public and private key. In the project's Directory, run openssl genrsa -out private.key 2048 then run openssl rsa -in private.key -pubout -out public.key This creates a public and private key pair using RSA encryption.
Compile encrypt.c and decrypt.c and make both exectutable with the chmod +x command.
In the terminal, in the projects directory, run make then sudo 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.