Skip to content

joaquinVill/EncryptionDeviceDriver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. This must take place on a Linux Machine
  2. USB must be formatted to ext4
  3. OpenSSL must be installed sudo apt install openssl
  4. Linux Headers must be installed sudo apt install linux-headers-$(uname -r)
  5. Inotify Tools must be installed sudo apt install inotify-tools
  6. A C compiler must be installed as well as Makefile tools
  7. 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

  1. 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.
  2. Compile encrypt.c and decrypt.c and make both exectutable with the chmod +x command.
  3. In the terminal, in the projects directory, run make then sudo make load This creates a module that is then loaded into the kernel.
  4. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published