🦭 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
.mfafiles - 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> --helpfor 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.10through3.14 - release version consistency check
compileallpass- full test suite
- Windows CLI smoke test
- package build and
twine check
- Python matrix validation on
-
Release Validation(release.yml)- pre-release validation
- build
sdistandwheel - 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.mfafiles 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
verifybefore 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
- Create a virtual environment.
- Run the full test suite before opening a pull request.
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee52c3a23ac75a9b051abac5bb8928bbb345ff43bcd138697520da547dd530f2
|
|
| MD5 |
34c6626c42cf204cc9fa6a6e297fcb8e
|
|
| BLAKE2b-256 |
3b5a0fab97581708d2c4ff689ef37692c47ffe52af0bb79efd17032daed50ffe
|
Provenance
The following attestation bundles were made for trueseal-0.1.0b0.tar.gz:
Publisher:
workflow.yml on 8w6s/trueseal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trueseal-0.1.0b0.tar.gz -
Subject digest:
ee52c3a23ac75a9b051abac5bb8928bbb345ff43bcd138697520da547dd530f2 - Sigstore transparency entry: 1219408038
- Sigstore integration time:
-
Permalink:
8w6s/trueseal@def0824fa887fa003ad6fdfe5f964b417ca97457 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/8w6s
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@def0824fa887fa003ad6fdfe5f964b417ca97457 -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd847aede58d892127f5ab3a40218fe6c6d19bb3c4419901dbccba4f556de52b
|
|
| MD5 |
5576fe04b7e46724d3eb77748d2597b1
|
|
| BLAKE2b-256 |
526c0e0c5a20bde75ce28279b5e32d0ad14702fe469126d1f69c235263c6c840
|
Provenance
The following attestation bundles were made for trueseal-0.1.0b0-py3-none-any.whl:
Publisher:
workflow.yml on 8w6s/trueseal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trueseal-0.1.0b0-py3-none-any.whl -
Subject digest:
fd847aede58d892127f5ab3a40218fe6c6d19bb3c4419901dbccba4f556de52b - Sigstore transparency entry: 1219408081
- Sigstore integration time:
-
Permalink:
8w6s/trueseal@def0824fa887fa003ad6fdfe5f964b417ca97457 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/8w6s
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@def0824fa887fa003ad6fdfe5f964b417ca97457 -
Trigger Event:
workflow_dispatch
-
Statement type: