Skip to main content

🦭 Enterprise-grade source code encryption

Project description

TrueSeal

TrueSeal is a Python CLI for sealing source code and sensitive secrets into an authenticated vault, with MFA, device binding, revocation, and Git hook automation.

Why TrueSeal

TrueSeal is built for teams that want more than file encryption. It gives you a controlled vault workflow for source code, keys, and operational secrets while keeping integrity checks, policy enforcement, and local revocation in the loop.

Highlights

  • Authenticated vault sealing and opening
  • AES-256-GCM and ChaCha20-Poly1305 support
  • Shamir Secret Sharing for distributed key handling
  • MFA-backed key access through .mfa files
  • Device-bound keys and local revocation checks
  • Duress and decoy workflows
  • Steganographic hiding with cloak
  • Git hook automation for protected repositories
  • CI/CD-ready package and release workflow

Installation

From source

git clone https://github.com/8w6s/trueseal.git
cd trueseal
python -m pip install .

From PyPI

pip install trueseal

Quick Start

1) Generate a key

trueseal keygen --out generated.tskey

2) Seal a project

trueseal seal . --key generated.tskey --out project.vault

3) Open the vault

trueseal open project.vault --key generated.tskey --out recovered

4) Verify integrity

trueseal verify project.vault --key generated.tskey

Run trueseal <command> --help for the exact flags supported by each command.

Command Reference

Command Purpose
keygen Generate a new TrueSeal key file
seal Seal files or a project into a vault
open Open a sealed vault back into files
verify Verify vault integrity without extracting
shard Split or restore keys with Shamir Secret Sharing
mfa Configure or verify MFA for a key
revoke Add a key to the local revocation list
cloak Hide or extract a vault inside an image
git Install or manage Git hook integration
env Manage environment setup and path bootstrap
pipeline Generate CI/CD pipeline helpers
duress Handle decoy or duress workflows
inspect Inspect vault or key metadata
merge Merge shard or vault artifacts
demo Run a demo of the CLI UX
version Print the current TrueSeal version

CI / CD

TrueSeal includes two core workflows in .github/workflows/:

  • ci.yml

    • Python matrix validation on 3.10 through 3.14
    • release version consistency check
    • compileall pass
    • full test suite
    • Windows CLI smoke test
    • package build and twine check
  • Release Validation (release.yml)

    • pre-release validation
    • build sdist and wheel
    • collect artifacts for review
  • PyPI Publish (workflow.yml)

    • manual publish step
    • target selection for TestPyPI or PyPI
    • trusted publishing via OIDC

Security Notes

  • Keep .tskey, .vault, .tshard, and .mfa files out of version control.
  • Revocation is enforced at use-time, not just as metadata.
  • Expired keys can still be inspected, but they cannot be used.
  • Use verify before opening untrusted vaults.
  • Treat Git hook automation as a protection layer, not a trust boundary.

Project Structure

trueseal/
├── commands/   # CLI command implementations
├── crypto/     # Key generation, ciphers, MFA, sharing, zeroization
├── ui/         # CLI styling, prompts, REPL helpers
├── utils/      # Logger and helper utilities
└── vault/      # Seal/open, policy, manifest, and steganography logic

Development Workflow

python scripts/check_release_state.py
pytest -q tests
python -m compileall trueseal

Contributing

  1. Create a virtual environment.
  2. Run the full test suite before opening a pull request.
  3. Keep changes focused, documented, and aligned with the existing CLI contract.

Versioning

Keep pyproject.toml and trueseal/__init__.py::__version__ in sync. The release check is enforced by scripts/check_release_state.py.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trueseal-0.1.0b0.tar.gz (61.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trueseal-0.1.0b0-py3-none-any.whl (73.8 kB view details)

Uploaded Python 3

File details

Details for the file trueseal-0.1.0b0.tar.gz.

File metadata

  • Download URL: trueseal-0.1.0b0.tar.gz
  • Upload date:
  • Size: 61.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for trueseal-0.1.0b0.tar.gz
Algorithm Hash digest
SHA256 ee52c3a23ac75a9b051abac5bb8928bbb345ff43bcd138697520da547dd530f2
MD5 34c6626c42cf204cc9fa6a6e297fcb8e
BLAKE2b-256 3b5a0fab97581708d2c4ff689ef37692c47ffe52af0bb79efd17032daed50ffe

See more details on using hashes here.

Provenance

The following attestation bundles were made for trueseal-0.1.0b0.tar.gz:

Publisher: workflow.yml on 8w6s/trueseal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file trueseal-0.1.0b0-py3-none-any.whl.

File metadata

  • Download URL: trueseal-0.1.0b0-py3-none-any.whl
  • Upload date:
  • Size: 73.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for trueseal-0.1.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd847aede58d892127f5ab3a40218fe6c6d19bb3c4419901dbccba4f556de52b
MD5 5576fe04b7e46724d3eb77748d2597b1
BLAKE2b-256 526c0e0c5a20bde75ce28279b5e32d0ad14702fe469126d1f69c235263c6c840

See more details on using hashes here.

Provenance

The following attestation bundles were made for trueseal-0.1.0b0-py3-none-any.whl:

Publisher: workflow.yml on 8w6s/trueseal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page