NAME
dotfold — Password-protected "TUI + CLI" tool to hide folder content in linux by prefixing them with ( . ) , changes ownership…
SYNOPSIS
sudo apt install gumINFO
DESCRIPTION
Password-protected "TUI + CLI" tool to hide folder content in linux by prefixing them with ( . ) , changes ownership to root and securely stores folder metadata using OpenSSL and a SHA-256 hashed password.
README
[!CAUTION] Do not use this to store very sensitive data. Just for more general stuff like photos, movies, and that kind of thing. It is secure until
someone doesn't know the root password.
I build this "over-engineered" tool..... for myself and thought others may need this.
▪️📂 dotfold
A small, 🔐 password-protected TUI + CLI tool that hides folders by prefixing them with "." , changes ownership to root and securely stores folder metadata using OpenSSL and a SHA-256 hashed password.
🔍 Preview
Similarly, you can't navigate outside current user home directroy in tui mode.

🔵 CLI Usages
Hiding folders
- Type full path of folder
dotfold hide "/path/to/folder" - Or, open a terminal in the folder’s parent directory and provide just the folder name.
dotfold hide "folder name"
Other commands
dotfold show hidden # shows all hidden folders
dotfold unhide # lets you unhide a folder
dotfold change passwd # Changes your password
🛠️ Setup
📦 Install Dependencies
For Linux:
ubuntu/debian
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://repo.charm.sh/apt/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/charm.gpg
echo "deb [signed-by=/etc/apt/keyrings/charm.gpg] https://repo.charm.sh/apt/ * *" | sudo tee /etc/apt/sources.list.d/charm.list
sudo apt update && sudo apt install gum fzf openssl
Archlinux
sudo pacman -S gum fzf openssl # Arch based system
Fedora
sudo dnf install gum openssl fzf
📢 For any other distro: install gum, fzf, and openssl manually — it should work without issues.
🛠️ Installation
- Clone this repository
git clone https://github.com/Harsh-bin/dotfold.git
cd dotfold
chmod +x ./install.sh
./install.sh
- Restart terminal and run
dotfoldtui # TUI MODE
dotfold [command] # CLI MODE
- Everything's done. NOW, enjoy!✌️
📢 Run dotfoldtui first to initialize the files before using dotfold
❌ Uninstalling dotfold
chmod +x ./uninstall.sh
./uninstall.sh

