Skip to content

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.

License

Notifications You must be signed in to change notification settings

Harsh-bin/dotfold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Type full path of folder
    dotfold hide "/path/to/folder"
    
  2. 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

  1. Clone this repository
 git clone https://github.com/Harsh-bin/dotfold.git
 cd dotfold
 chmod +x ./install.sh
 ./install.sh
  1. Restart terminal and run
  dotfoldtui   # TUI MODE
  dotfold [command]   # CLI MODE
  1. Everything's done. NOW, enjoy!✌️

📢 Run dotfoldtui first to initialize the files before using dotfold


❌ Uninstalling dotfold

chmod +x ./uninstall.sh
./uninstall.sh

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages