{"id":44658070,"url":"https://github.com/l1asis/vault-tar","last_synced_at":"2026-02-14T22:25:56.904Z","repository":{"id":337113168,"uuid":"1152391396","full_name":"l1asis/vault-tar","owner":"l1asis","description":"AES-256-GCM file and directory encryption CLI with chunked streaming, configurable compression, and output splitting.","archived":false,"fork":false,"pushed_at":"2026-02-07T22:30:27.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-08T04:52:28.259Z","etag":null,"topics":["aes-256-gcm","archiving","cli","compression","cryptography","directory-encryption","encryption","file-encryption","pbkdf2","privacy","python","security"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/l1asis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-07T20:03:58.000Z","updated_at":"2026-02-07T22:28:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/l1asis/vault-tar","commit_stats":null,"previous_names":["l1asis/vault-tar"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/l1asis/vault-tar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l1asis%2Fvault-tar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l1asis%2Fvault-tar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l1asis%2Fvault-tar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l1asis%2Fvault-tar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/l1asis","download_url":"https://codeload.github.com/l1asis/vault-tar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l1asis%2Fvault-tar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29458457,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T21:29:27.764Z","status":"ssl_error","status_checked_at":"2026-02-14T21:28:11.111Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aes-256-gcm","archiving","cli","compression","cryptography","directory-encryption","encryption","file-encryption","pbkdf2","privacy","python","security"],"created_at":"2026-02-14T22:25:56.399Z","updated_at":"2026-02-14T22:25:56.899Z","avatar_url":"https://github.com/l1asis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vault-tar\n\nAES-256-GCM file and directory encryption with chunked streaming, configurable\ncompression, and optional output splitting.\n\n## Features\n\n- **AES-256-GCM** authenticated encryption with PBKDF2-HMAC-SHA256 key\n  derivation (1 200 000 iterations by default).\n- **Chunked streaming** — encrypts/decrypts in 1 MiB chunks so memory usage\n  stays constant regardless of input size.\n- **Compression** — choose between `xz`, `gz`, `bz2`, `zst`\n  (Python ≥ 3.14), or `none`.\n- **Output splitting** — split encrypted output into fixed-size parts (default\n  1 GiB) for easier storage and transfer.\n- **Single-file mode** — encrypt/decrypt individual files without tar\n  archiving.\n- **Directory comparison** — recursively compare two directory trees after a\n  round-trip to verify integrity.\n- **Progress bars** — optional verbose mode (`-v`) with real-time byte-level\n  progress during compression, encryption, and decryption.\n\n## Requirements\n\n- Python ≥ 3.12\n- [`cryptography`](https://cryptography.io/) ≥ 43.0\n\n## Installation\n\n### From PyPI\n\n```bash\npip install vault-tar\n```\n\n### From source\n\n```bash\ngit clone https://github.com/l1asis/vault-tar.git\ncd vault-tar\npip install .\n```\n\n## Usage\n\nAfter installation the `vtar` command is available on your `PATH`.\n\n### Encrypt directories\n\n```bash\nvtar encrypt -i secret_docs/ photos/ -o encrypted -v\n```\n\n### Encrypt with a specific algorithm\n\n```bash\nvtar encrypt -i data/ -o data --algorithm zst -v        # zstandard (Python ≥ 3.14)\nvtar encrypt -i data/ -o data --algorithm gz -v          # gzip\nvtar encrypt -i data/ -o data --algorithm none -v        # tar only, no compression\n```\n\n### Encrypt a single file (skip archiving)\n\n```bash\nvtar encrypt -i backup.sql -o backup.enc --file-only --no-split\n```\n\n### Decrypt\n\n```bash\nvtar decrypt -i encrypted -o restored/ -v\nvtar decrypt -i backup.enc -o backup.sql --file-only\n```\n\n### Compare directories\n\nVerify that decrypted output matches the original:\n\n```bash\nvtar compare original/ restored/ -v\n```\n\n### Additional options\n\n| Flag | Description |\n|---|---|\n| `-v`, `--verbose` | Show progress bars and status messages |\n| `--password TEXT` | Supply password on command line (prompted if omitted) |\n| `--algorithm {xz,gz,bz2,zst,none}` | Compression algorithm (default: `xz`) |\n| `--compression-level N` | Algorithm-specific compression level |\n| `--chunk-size SIZE` | Plaintext chunk size (default: `1MiB`) |\n| `--split-size SIZE` | Max part-file size (default: `1GiB`) |\n| `--no-split` | Write a single output file |\n| `--file-only` | Encrypt/decrypt a single file directly |\n| `--cleanup` | Remove original input after success |\n| `-V`, `--version` | Show version and exit |\n\nSizes accept human-readable suffixes: `KiB`, `MiB`, ... `TiB` \nfor binary units (default), as well as `KB`, `MB`, ... `TB`\nfor decimal units.\n\n## File format\n\nAll encrypted output follows a custom binary format (v1):\n\n```\nHeader (first part only):\n  [2 B]  magic  0xEF01\n  [1 B]  format version  0x01\n  [2 B]  salt length          [N B]  salt\n  [2 B]  base-nonce length    [12 B] base nonce\n\nChunks (sequential across parts):\n  [4 B]  ciphertext length    [N B]  ciphertext (plaintext + 16 B GCM tag)\n```\n\nEach chunk uses a unique nonce derived as `base_nonce XOR chunk_index`\n(big-endian, 12 bytes) with AAD `b\"chunk_\u003cindex\u003e\"`.\n\n## Security\n\nSee [SECURITY.md](SECURITY.md) for the threat model, cryptographic details,\nknown limitations, and responsible disclosure policy.\n\n## Acknowledgments\n\nBuilt with assistance from [GitHub Copilot](https://github.com/features/copilot)\n(Claude Opus 4.6).\n\n## License\n\n[MIT](LICENSE) — Copyright 2026 Volodymyr Horshenin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl1asis%2Fvault-tar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fl1asis%2Fvault-tar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl1asis%2Fvault-tar/lists"}