Skip to content

A portable USB encryption tool with password protection, GUI login, tray minimization, and Windows installer support.

Notifications You must be signed in to change notification settings

whitedevil988/USB-Encrypting-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

🔐 USB Encryption Tool

A portable, cross-PC USB encryption utility that automatically encrypts/decrypts files stored on your USB drive using a password prompt. Built with Python, PyInstaller, and packaged with a professional Windows installer using Inno Setup.

🛡️ Lock and unlock sensitive files seamlessly — just plug in your USB and go!


🚀 Features

  • 🔒 AES Encryption with password protection
  • 🔁 Auto-lock on unplug, unlock on reinsert
  • 💡 Graphical Password Dialog (no command-line)
  • ☁️ Unlimited password attempts
  • 💼 Portable — runs directly from the USB
  • 🧳 Minimizes to tray with quit option
  • 🎨 Custom icon support
  • 📦 Windows installer included

📁 How It Works

  • On first run, you’re prompted to set a password.
  • All files inside secure_files/ will be encrypted.
  • When plugged back in, it prompts for your password and decrypts everything upon success.

📦 Download

Clone this repo or download the latest release.

Or compile it yourself:

git clone https://github.com/your-username/usb-encryption-tool.git
cd usb-encryption-tool

🧩 Dependencies

Install with:

pip install cryptography pystray pillow

⚙️ Build Instructions

🔹 1. Compile the Script to .exe

pyinstaller --onefile --noconsole --icon=usb_lock.ico usb_lock.py

🔹 2. Prepare USB Folder Structure

USB/
├── usb_lock_win.exe       ← compiled app
├── run_usb_lock.bat       ← auto launcher
├── secure_files/          ← encrypted file folder
├── usb_lock.ico           ← optional custom icon

🔹 3. Build Windows Installer (Optional)

Use Inno Setup and run usb_lock_installer.iss.

✅ It will generate a .exe installer that installs directly to your USB.


🖼️ Tray Icon

The app minimizes to the system tray on Windows. Right-click the icon to quit the app.


🔁 Auto-Detect USB

The installer looks for a USB drive containing a file named usb_target_marker to install files to that drive automatically.


📜 License

MIT License. Feel free to fork, customize, and distribute.


💬 Contributing

Pull requests and improvements are welcome!

  1. Fork the repo
  2. Create your feature branch: git checkout -b cool-feature
  3. Commit changes
  4. Push to the branch
  5. Open a PR!

💡 Ideas for the Future

  • Auto-run setup via USB (cross-platform)
  • Hidden file system or vault mode
  • OTP/2FA login integration
  • Mac/Linux compatibility (basic support already possible)

🙏 Credits


🔗 Stay safe, and encrypt smart. 💾🔐

About

A portable USB encryption tool with password protection, GUI login, tray minimization, and Windows installer support.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published