An open API service indexing awesome lists of open source software.

https://github.com/deadswitch404/vault-crypt

Minimalist GPG-powered vault encryption for KeePassXC. No cloud. No traces. Just your keys, your silence, and the seal.
https://github.com/deadswitch404/vault-crypt

bash cybersecurity deadswitch encryption gpg infosec keepassxc linux local-first opsec privacy vault

Last synced: about 1 year ago
JSON representation

Minimalist GPG-powered vault encryption for KeePassXC. No cloud. No traces. Just your keys, your silence, and the seal.

Awesome Lists containing this project

README

          

# πŸ•ΆοΈ vault-crypt

> **DeadSwitch | The Cyber Ghost**
> _"In silence, we rise. In the switch, we fade."_

Minimalist encryption for those who live off the grid.
A GPG-powered vault manager for your `.kdbx` password databases.
No GUI. No cloud. Just your keys, your vault, and the silence between.

---

## 🧭 What is `vault-crypt`?

A bash script that:
- Encrypts and signs your KeePassXC `.kdbx` file using GPG.
- Decrypts when needed, verifies signature integrity.
- Purges unsealed vaults to eliminate traces.
- Backs up your encrypted vault with timestamped versions.

All operations are local. No 3rd-party sync.
You are the cloud. You are the guardian.

---

## πŸ” Philosophy

> *Your vault is your memory.
> Sign it with your hand.
> Seal it with your ghost.
> Let no cloud eat what you protect.*
> β€” DeadSwitch

---

## πŸš€ Features

- βœ… GPG encryption + signature validation
- βœ… File wiping of plaintext vaults
- βœ… Timestamped backup creation
- βœ… Lightweight and auditable
- βœ… Config via `.env` file

---

## πŸ“‚ File Structure

```text
.
β”œβ”€β”€ examples
β”‚Β Β  └── sample.env
β”œβ”€β”€ README.md
└── vault-crypt.sh
```

---

## βš™οΈ Setup

### Clone the repo

```bash
git clone https://github.com/DeadSwitch404/vault-crypt.git
cd vault-crypt
```

### Copy and configure your env:

```bash
cp examples/sample.env .env.pwmanager
nano .env.pwmanager
```

### Make the script executable:

```bash
chmod +x vault-crypt.sh
```
### Test your GPG setup:

```bash
gpg --list-keys
```

## πŸ› οΈ Commands

```bash
./vault-crypt.sh encrypt # Encrypt and sign the KeePass DB
./vault-crypt.sh decrypt # Decrypt and validate the vault
./vault-crypt.sh status # Show vault state
./vault-crypt.sh backup # Create encrypted, timestamped backup
./vault-crypt.sh help # Show usage
```

## πŸ§ͺ Example .env.pwmanager

```text
KEY_ID="deadbeef42"
PW_DIR="$HOME/vault/passwords"
CLEAR_PW_DB="secrets.kdbx"
CRYPT_PW_DB="secrets.kdbx.gpg"
BACKUP_DIR="$HOME/vault/backups"
TIMESTAMP=$(date +"%Y%m%d-%H%M")
CURRENT_DIR="$PWD"
```

### Important:

Keep this .env file outside of version control.
DeadSwitch recommends using chmod 600 and storing it on encrypted storage.

## 🧹 Bonus: Harden Your Flow

- Use shred or srm to wipe files on exit (manual or optional enhancement).
- Alias vault-crypt.sh decrypt to open-sesame for that final hacker vibe.
- Run via cron for daily encrypted backups to external storage (offline preferred).

## πŸ•³οΈ Backdoor-Free Guarantee

`grep -r curl .`
(nothing found)

`grep -r wget .`
(silence)

# You’re home.

## πŸͺͺ License

MIT.

Use. Fork. Adapt. Ghost away.

But respect the silence. Credit DeadSwitch.

DeadSwitch | The Cyber Ghost
"You don't need permission to protect what’s yours."

https://tomsitcafe.com
https://github.com/DeadSwitch404/vault-crypt