Giter Club home page Giter Club logo

veracrypt_mount's Introduction

veracrypt_remote_mount

Custom made script for decrypting volumes encrypted by veracrypt.
To protect drives attached to my raspberry pi, I encrypted them using veracrypt.
But I set up weekly backups of the pi to be stored in one of the drives.

One easy solution is to auto-mount them on every reboot, which is not very secure.
So, I decided to design a webpage from which I can take password as input and decrypt the drives only when I need.

In veracrypt_mount.sh, change the mount points and device paths as required.
When the script is run, it displays the index.html file inside templates folder.
Entering the password in the form and submitting it will verify if the password works for the drive you provided in the shell script.
There is also an option to protect hidden volume by providing the hidden volume's password. If there is no hidden volume, leave that field blank.
In case of errors, they will be written to mount_fail.log.

Now, this script only runs this service on local network. So, if you're out of that network, you can't decrypt the drives.
To solve this I used ngrok. Check out how to host a website using ngork in my notes here.
I provided sample ngrok files in this repository. These should be enough for you to access the page from the open internet and decrypt your drives remotely.
To check if the script is running, and run it if it isn't, we add this following line at the end of "crontab -e"
* * * * * /usr/bin/python3 /path/to/veracrypt_mount.py

Contact me at [email protected] if you have any queries or concerns regarding the script.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.