VaultCLI is a security-focused command-line tool for creating encrypted file vaults in a single portable container.
The project is being built in public with a strong emphasis on auditable cryptography, practical usability, and a clean developer experience. The planned design uses modern authenticated encryption for file content, memory-hard key derivation for passphrases, and an offline-first workflow suitable for developers, privacy-conscious users, and automation environments.
Install the project locally:
python -m poetry installRun the CLI through Poetry during development:
python -m poetry run vault --helpCreate a vault, add a file, inspect it, and extract it again:
python -m poetry run vault create demo.vault --passphrase "CorrectHorseBatteryStaple123!"
python -m poetry run vault add demo.vault .\notes.txt --passphrase "CorrectHorseBatteryStaple123!"
python -m poetry run vault list demo.vault --passphrase "CorrectHorseBatteryStaple123!"
python -m poetry run vault extract demo.vault notes.txt --passphrase "CorrectHorseBatteryStaple123!" --output .\restoredIf you do not want the passphrase to appear in shell history, use one of the safer input paths:
python -m poetry run vault create demo.vault
python -m poetry run vault list demo.vault --prompt-passphrase
python -m poetry run vault verify demo.vault --passphrase-env VAULTCLI_PASSPHRASEDevelopment workflow:
python -m poetry install
python -m poetry run vault --helpBuild distributable artifacts:
python -m poetry buildAfter installation, the CLI entrypoint is:
vault --helpCreate a vault:
python -m poetry run vault create secrets.vaultInspect public metadata without unlocking:
python -m poetry run vault info secrets.vaultInspect authenticated metadata after unlocking:
python -m poetry run vault info secrets.vault --prompt-passphraseAdd a directory tree:
python -m poetry run vault add secrets.vault .\project-files --prompt-passphraseExtract everything into a target folder:
python -m poetry run vault extract secrets.vault --all --prompt-passphrase --output .\restoreRun structural-only verification:
python -m poetry run vault verify secrets.vault --lockedRun authenticated verification:
python -m poetry run vault verify secrets.vault --prompt-passphraseUse environment variables or files for scripted workflows:
$env:VAULTCLI_PASSPHRASE = "CorrectHorseBatteryStaple123!"
python -m poetry run vault list secrets.vault --passphrase-env VAULTCLI_PASSPHRASE
python -m poetry run vault rekey secrets.vault --current-passphrase-env VAULTCLI_PASSPHRASE --new-passphrase-file .\new-passphrase.txtVaultCLI uses a container workflow rather than encrypting files in place.
- You start with a normal plaintext source file such as
notes.txt. vault addreads that file and stores an encrypted copy insidesmoke.vaultor another vault container.- The original source file stays on disk unchanged unless you remove it yourself.
vault list,vault info, andvault verifyinspect or validate the encrypted container.vault extractrestores a plaintext copy into an output directory such asrestore\notes.txt.
The same model applies to hidden volumes:
inner.txtis the original plaintext source file- the encrypted hidden copy is stored inside the hidden portion of the vault container
hidden-restore\inner.txtis the decrypted output restored from that hidden data
In short:
- source file = plaintext input
*.vault= encrypted container- extracted file = restored plaintext output
VaultCLI is currently in the active hardening and polish stage.
The original implementation backlog has been completed and the repository is now focused on tightening behavior, testing corruption cases, refining the internal API, and improving developer-facing polish. The current public slice includes the core cryptographic services, the container reader/writer, the main CLI workflows, authenticated verification, rekeying, wipe support, hidden-volume management, and metadata-first read paths.
In practice, this means the repository is feature-complete for its current v1 scope but is still being treated as a build-in-public security project rather than a finished release candidate.
Track progress here:
- Create encrypted vault containers for files and directories
- Protect file content with authenticated encryption
- Derive keys from passphrases using Argon2id
- Add, list, extract, verify, and rekey vault contents from the CLI
- Support streaming-friendly large-file handling
- Offer secure passphrase input paths for interactive and scripted use
- Explore hidden-volume support for plausible deniability
vault createvault infovault listvault addvault extractvault verifyvault rekeyvault wipevault hidden createvault hidden infovault hidden verifyvault hidden listvault hidden addvault hidden extract
python -m poetry install
python -m poetry run vault --help
.\scripts\smoke-test.ps1
.\scripts\release-check.ps1
python -m poetry run ruff check .
python -m poetry run mypy vaultcli
python -m poetry run pytest --cov=vaultcli --cov-report=term-missing
python -m poetry buildOne-command end-to-end smoke test:
.\scripts\smoke-test.ps1Keep the temporary vault artifacts for inspection:
.\scripts\smoke-test.ps1 -KeepArtifactsOne-command release-style validation:
.\scripts\release-check.ps1Keep the smoke-test artifacts from the release check:
.\scripts\release-check.ps1 -KeepSmokeArtifactsThe SRS and private working notes are intentionally kept out of git. Public development work is tracked through issues, source, tests, CI, and release notes.
- Offline first: no network dependency for vault operations
- Auditable cryptography: use well-known primitives from vetted libraries
- Scriptable UX: friendly for shells, automation, and CI pipelines
- Safety over cleverness: explicit failure modes, authenticated metadata, and conservative defaults
- Portability: target Linux, macOS, and Windows
VaultCLI is not production-ready yet. Until the implementation is complete, reviewed, and tested, this repository should be treated as an active build project rather than a finished security product.
If you plan to use this project for real secrets later, please wait for the hardening, review, and broader validation work to be completed first.
See also:
Current caveats:
- Hidden-volume support exists, but plausible-deniability claims should be treated as provisional until the format and threat model receive deeper external review.
- The wipe command is best-effort only and should not be treated as guaranteed secure deletion on SSDs, flash storage, snapshots, or journaling filesystems.
- Python memory handling is improved where practical, but this project does not claim absolute secret zeroization guarantees inside the interpreter.
- This repository currently prioritizes correctness, transparency, and testability over performance tuning for very large real-world datasets.
Suggested evaluation use:
- local experimentation
- code review and security review
- CI and packaging validation
- non-sensitive demo data
Not yet recommended for:
- high-risk secret storage
- production backup of irreplaceable confidential data
- environments that require independently reviewed deniability properties
The current implementation roadmap is tracked in GitHub Issues, including:
- repository bootstrap and tooling
- KDF and encryption primitives
- container format and reader/writer
- CLI commands
- authenticated verification
- hidden-volume workflows
- CI, packaging, and release hardening
Current post-backlog focus:
- parser and corruption hardening
- larger end-to-end stress coverage
- CLI failure-path polish
- documentation and release-readiness cleanup
Reviewer-facing docs:
- Usage Guide
- Security Status
- Threat Model
- Audit Prep
- Code Map
- Next Phase Checklist
- RC Triage
- RC Status
- Release Checklist
This public repository contains implementation work, documentation intended for public consumption, and the issue backlog.
Private design drafts and working specification notes may be maintained locally and are not part of the tracked source tree.
This project is licensed under the MIT License. See LICENSE.