Let me Script You: Secret GUI v2.1 — Encryption, Passwords & File Utility for Linux

Author: Perisa Reljic [ ▽ Ш ]

Studio: Art Studio Shumadia Gothic [ Ш ]

Project: Let me Script You

Environment: Linux / Python 3 (tkinter + Python 3 standard library, no external Python packages required)

Website: https://perisareljic.name | https://en.perisareljic.name

Introduction

Keeping sensitive notes, configuration snippets, credentials, and personal files protected on a Linux workstation should not require heavy third-party suites or complicated setup. Secret GUI v2.1 brings together password generation, text and clipboard encryption, binary file encryption with integrity verification, and an embedded PTY terminal into a single lightweight interface—while preserving the interactive menu and CLI workflows from Secret V2.0.

Built on the Python 3 standard library (hashlib, secrets, base64, os, pty, subprocess, threading) and tkinter, it runs directly on Linux systems with no external Python pip dependencies, using xclip or xsel when available for system clipboard access.

What It Does and What It Is For

  • Password Generator: Generates cryptographically random passwords (secrets.choice) with configurable length, optional visibility toggle (Show/Hide), one-click clipboard copy, and one-click transfer into the passphrase fields.
  • Text & Clipboard Encryption / Decryption: Derives a 32-byte key from your master passphrase using PBKDF2-HMAC-SHA256 (100,000 iterations with a random 16-byte salt) and applies a byte-stream XOR cipher encoded in Base64, working both in the text area and directly on the system clipboard.
  • Binary File Encryption & Integrity Check: Encrypts any file type (images, PDFs, documents, archives, text) in binary mode using a LMSY_BIN_V2 header, 16-byte salt, and a SHA-256 digest verified upon decryption (with fallback support for legacy text ciphers).
  • GUI, Terminal & Audit Log: Features Dark and Light themes, a 2×4 action grid, file browser/save dialogs, a timestamped log with .txt export, an About window with the [ ▽ Ш ] signature, and an embedded PTY terminal (cd, command history, optional sudo, Stop, and external terminal launch).
  • CLI & Interactive Menu Compatibility: Can be launched as a GUI (default or --gui), via an interactive numbered menu (--menu), or directly from the shell (gen, enc, dec, fenc, fdec, clenc, cldec).

Who This Script Is For

  • Linux users and creators who want a fast, self-contained local utility to generate strong passwords and protect text or files on their own machine.
  • System administrators and developers looking for a clean, transparent Python tool with both graphical controls and scriptable CLI subcommands.
  • Learners exploring applied cryptography basics such as key derivation (PBKDF2), salting, integrity digests (SHA-256), and stream ciphers on local test data.

Disclaimer

IMPORTANT USAGE NOTICE:

Secret GUI v2.1 is provided for personal, educational, and legitimate administrative use. Always keep a safe backup of your master passphrase—if a passphrase is lost, encrypted data cannot be recovered. The author assumes no responsibility for data loss, misuse, or any consequences arising from how the tool is used.

How to Use It (Companion Bash Commands)

1. Setup and executable permission

Bash

chmod +x secret_gui.py

2. Launching the GUI, interactive menu, or CLI commands

Bash

# Launch GUI (default)
python3 secret_gui.py
./secret_gui.py --gui

# Launch interactive terminal menu
./secret_gui.py --menu

# Generate a 24-character password via CLI
python3 secret_gui.py gen 24

# Encrypt / decrypt a file via CLI
python3 secret_gui.py fenc notes.txt notes.txt.enc
python3 secret_gui.py fdec notes.txt.enc notes.txt

Source Code & Repository

The complete source code for Secret GUI v2.1 is maintained on GitHub:

git clone https://github.com/Perisa-Reljic/secret-gui.git
cd secret-gui
chmod +x secret_gui.py