Secrets & Identity — L0
One vault. One master key. A few simple habits. Robust secrets at layer zero.
KeePass
L0 Basics
Device Loss Safe
Heir-Friendly
Section 0
Secrets & Identity — What You’re Building
You are building:
- One Secret Box → a KeePass vault file (
my-secrets.kdbx)
- One Master Key → a strong sentence you can say but others can’t guess
- Two Helper Tools (optional but recommended)
- A TOTP app (like Aegis)
- A file-encryption tool (
age) and/or identity tool (GPG) [ADVANCED]
Everything else = copies and safety nets.
Section 1
Decide Your Devices
Pick which devices you have:
Computer
- Windows
- macOS
- Linux (preferred)
Phone
- Android (degoogled preferred) → use KeePassDX + Aegis
- iPhone → use KeePassium (no Aegis; keep TOTPs in KeePass for now)
You only need one computer and one phone to complete BASIC.
Section 2
Prepare Physical Stuff
Get:
- 📝 Paper (2–4 sheets)
- ✍️ Pen
- 💾 2 USB sticks (or external drives)
- 📁 1 envelope (or small folder)
You’ll use these for:
- Writing down your master password
- Writing down a simple map of where things are
- Copying your vault to multiple places
Section 3
Create Your Master Password (The One Ring)
This password protects everything. Do this slowly.
3.1 Build the sentence
- Think of:
- 1 private memory (that no one else knows in detail)
- 1 random object
- 1 random number
- Combine them into a weird sentence, e.g.:
Yellow_tractor!fence 47 ghosts sing slowly
Rules:
- At least 5 words
- Mix of lowercase, UPPERCASE, numbers, symbols
- Not a quote, song lyric, or famous phrase
3.2 Write it down
On paper, write exactly:
MASTER PASSWORD #1
Yellow_tractor!fence 47 ghosts sing slowly
Do this twice on two separate sheets.
- Put each sheet into its own envelope:
MASTER PASSWORD COPY A
MASTER PASSWORD COPY B
- You will store them in two different safe places later.
✅ When done:
You have one strong sentence written on two different papers.
Section 4
Install KeePass on the Computer (Root Secret Box)
- On your computer: open your browser.
- Search for “KeePassXC download”.
- Download from the official site (or your distro’s package manager).
- Install and open KeePassXC.
4.1 Create the vault
- In KeePassXC: click Database → New Database…
- Name it:
my-secrets.kdbx
- When asked for Master Password, type your sentence exactly.
- Save the file in a new folder, for example:
Documents/Secrets/my-secrets.kdbx
✅ When done:
- You have a file called
my-secrets.kdbx.
- It opens only with your master password.
Section 5
Create Your First Entry (Test Entry)
- Inside KeePassXC, click “Add New Entry” (usually a + icon).
- Fill:
- Title:
TEST ACCOUNT
- Username:
test@example.com
- Password: click generate (random, long, e.g. 20–30 chars).
- Click Save.
5.1 Test copy–paste
- Double-click the
TEST ACCOUNT entry.
- Click the icon to copy the password.
- Paste it into a blank text editor just to see it works, then delete it.
✅ When done:
You know how to add and use an entry.
Section 6
Make Your First Copies (Backups of Vault)
Now copy my-secrets.kdbx to two USB sticks.
- Plug in USB #1:
- Make a folder:
SecretsBackup
- Copy
my-secrets.kdbx into it
- Eject USB #1.
- Repeat on USB #2.
Now you have:
- Original: on computer (e.g.
Documents/Secrets/my-secrets.kdbx)
- Backup 1: on USB #1
- Backup 2: on USB #2
6.1 Store them in different places
- USB #1 → hide at home (not obvious).
- USB #2 → hide in a different place (trusted family, safe, office locker).
✅ When done:
- 1 vault file in 3 places.
- Master password written on 2 papers in 2 locations.
That’s already a robust BASIC-level L0.
Section 7
Put KeePass on the Phone
7A. Android (KeePassDX + optional Aegis)
- On your Android phone: open Play Store or F-Droid.
- Install KeePassDX.
- Move your vault file (
my-secrets.kdbx) to the phone:
- Simplest for BASIC:
- Plug phone into computer.
- Copy
my-secrets.kdbx to Downloads/ or a Secrets/ folder.
- Or use a local network method.
- Open KeePassDX:
- Tap Open or Import.
- Find
my-secrets.kdbx.
- Enter your master password.
You should now see TEST ACCOUNT on the phone too.
7A.1 TOTP app (Aegis) – BASIC
- Install Aegis Authenticator on Android.
- For every account where a website offers “Authenticator app / TOTP”:
- Turn it on.
- Scan the QR code using Aegis.
- Aegis will now show a 6-digit code rotating every 30 seconds.
We’ll tie this to KeePass usage in Section 9.
7B. iPhone (KeePassium)
- On your iPhone: open App Store.
- Install KeePassium (free or paid; both share an open-source core).
- Move
my-secrets.kdbx to the phone:
- Easiest: plug phone into computer and use Finder (macOS) or iTunes (Windows) “Files” section.
- Copy into KeePassium’s app folder.
- Open KeePassium, pick
my-secrets.kdbx, enter your master password.
You now see TEST ACCOUNT on iPhone.
Note
No Aegis on iPhone. For BASIC iPhone-only setups, either:
- Keep TOTPs inside KeePass entries, or
- Accept SMS TOTP where forced (with known downsides).
Section 8
Daily Use: Simple Rules
Rule 1 – No more “remembering” passwords
When a website asks for a password:
- In KeePass:
- Click “Add New Entry”.
- Let KeePass generate a long random password (20+ chars).
- Save the entry with:
- Title: site name (e.g.
ProtonMail).
- Username: your login or email.
You never manually invent passwords again.
Rule 2 – Login flow (everyday use)
- Open KeePass (computer or phone).
- Unlock with master password.
- Find the entry (e.g.
ProtonMail).
- Copy username → paste into site.
- Copy password → paste into site.
Rule 3 – TOTPs (2FA codes)
If you have Android and Aegis (recommended):
- Use Aegis for TOTPs.
- Flow:
- Log in with username + password from KeePass.
- Open Aegis → copy the 6-digit code → paste.
If you’re on iPhone only (no Aegis):
- Store the TOTP secret inside KeePass entry (KeePassXC & KeePassium support TOTP):
- When adding 2FA, choose “manual setup”, enter the secret key in KeePass’s TOTP field.
- Then KeePass generates the 6-digit code when you open the entry.
Important:
Avoid SMS for TOTPs when you can. SMS is fallback only, not the main layer.
Section 9
Maintenance: Simple Checklists
9.1 Weekly
- Open KeePass on computer.
- Open KeePass on phone.
- Confirm they both open with the same master password.
- Add any new accounts created that week (if you forgot, add them now).
9.2 Monthly
- Plug in USB #1, copy new
my-secrets.kdbx (overwrite old one).
- Plug in USB #2, same copy.
- Check
TEST ACCOUNT entry exists in all 3 copies (PC + 2 USBs).
- Check paper master-password envelopes still exist.
Section 10
“Oh No!” Scenarios (Foolproof Branches)
Scenario A – You forget the master password
- If both paper copies are gone → vault is lost forever. That’s by design.
- If at least one paper exists:
- Go read it.
- Use it to open the vault.
- Optionally, change master password and update both papers.
Scenario B – Computer dies / stolen
- Vault is safe if the master password is strong.
- Use your phone or one USB backup on a new computer:
- Install KeePassXC again.
- Copy
my-secrets.kdbx from USB or phone to new computer.
- Open with master password.
Scenario C – Phone dies / stolen
- Install KeePass again on new phone.
- Move
my-secrets.kdbx from computer or USB to the new phone.
- Use the master password.
Scenario D – One USB lost
- The other USB still has a backup.
- Make a new third copy from computer and store it somewhere new if needed.
Section 11
Simple “Heir / Trusted Person” Instructions (One Page)
Write one more paper with the title:
HOW TO OPEN MY SECRET BOX
-
“There is a file called my-secrets.kdbx”
- It is on:
- [ ] My computer (location:
__________)
- [ ] USB #1 (location:
__________)
- [ ] USB #2 (location:
__________)
-
“There is a Master Password for this file”
- It is written on:
- [ ] Envelope
MASTER PASSWORD COPY A (location: __________)
- [ ] Envelope
MASTER PASSWORD COPY B (location: __________)
-
“To open the file, you must:”
- Install KeePassXC (computer) or KeePassDX/KeePassium (phone).
- Open
my-secrets.kdbx.
- Type the master password from the envelope.
Put this paper somewhere obvious: with your will, in a safe, etc.
Section 12
ADVANCED — age & GPG
When you're ready for stronger armor and can handle 1–2 extra steps, add this.
12.1 Install GPG (identity & signatures)
- On your main computer, install GPG:
- Windows: Gpg4win
- macOS: GPG Suite or
gpg via Homebrew
- Linux:
gpg via package manager (often preinstalled)
- Create one primary key:
- Real name or pseudonym, simple email.
- Strong passphrase (can be different from vault master password).
- Write in KeePass:
- Entry:
GPG MASTER KEY
- Store:
- Key fingerprint.
- Where key is stored (path).
- Passphrase.
Minimal use case:
Sign a text file KEY-OWNERSHIP.txt saying “This key belongs to me” so you tie identity to a key in a verifiable way.
12.2 Install age (simple file encryption)
- On your main computer, install
age (via package manager, Homebrew, or binary).
- Run once to create a key:
age-keygen -o age.key
- Store
age.key path and any passphrase inside KeePass in an entry AGE KEY.
12.2.1 Encrypt your vault backups
Instead of copying my-secrets.kdbx directly to USB, do:
- On computer:
age -r YOUR_AGE_PUBLIC_KEY -o my-secrets.kdbx.age my-secrets.kdbx
- Copy
my-secrets.kdbx.age to USBs instead of the raw file.
Now, if someone steals the USB, they see only encrypted data. They would need:
- The age key, and
- The KeePass master password
Test decryption at least once:
- Copy
my-secrets.kdbx.age to a test folder.
- Decrypt with
age to my-secrets-restored.kdbx.
- Open that file in KeePass with the master password.
If this works once, you’re good.
Section 13
Final Checklist
If someone only wants the shortest “DO THESE THINGS” list:
- Make one strong sentence (master password) and write it on two papers.
- Install KeePassXC on your computer; make
my-secrets.kdbx.
- Install KeePassDX (Android) or KeePassium (iPhone); open
my-secrets.kdbx on phone.
- For every website:
- Let KeePass generate passwords.
- Store username + password in KeePass.
- Install Aegis (Android) and use it for 2FA codes (or KeePass TOTPs if on iPhone).
- Copy
my-secrets.kdbx onto 2 USBs and hide them in two different places.
- Once a month, update both USBs with the latest
my-secrets.kdbx.
- Once a month, test a restore from a USB onto KeePass on your computer.
If all 8 are true:
Your L0 layer is up and foolproof for normal failures (device loss, theft, forgetfulness),
and you can start building higher layers on top.