
Modern teams need to ship valuable data/models to customers securely, without painful key management or custom builds on every machine. Plain zips leak keys, signatures don’t enforce access, and full-blown DRM is heavy and brittle. This project offers a pragmatic middle ground:
Envelope encryption utilities for distributing data/models:
[See GitHub Repo: ](https://raw.githubusercontent.com/stevef1uk/secure_packager/README.md
Run examples (integration examples in GitHub repo) (volume mount input/output):
docker run --rm -v $(pwd)/input:/in -v $(pwd)/out:/out
yourorg/secure-packager:latest packager -in /in -out /out -pub /out/customer_public.pem -zip=true
docker run --rm -v $(pwd)/input:/in -v $(pwd)/out:/out -v $(pwd)/keys:/keys
yourorg/secure-packager:latest packager -in /in -out /out -pub /out/customer_public.pem -zip=true -license -vendor-pub /keys/vendor_public.pem
docker run --rm -v $(pwd)/out:/out -v $(pwd)/dec:/dec -v $(pwd)/keys:/keys
yourorg/secure-packager:latest unpack -zip /out/encrypted_files.zip -priv /keys/customer_private.pem -out /dec -license-token /keys/token.txt
docker run --rm -v $(pwd)/keys:/keys yourorg/secure-packager:latest
issue-token -priv /keys/vendor_private.pem -expiry 2025-12-31 -company Acme -email [email protected] -out /keys/token.txt
### Modes
- Without licensing: default; zip contains encrypted files and `wrapped_key.bin` only
- With licensing: add manifest and vendor public key; unzip enforces license automatically
License token format (compatible with existing):
- `base64url(expiry:company:email:placeholder_key:signature_b64)`
- Signature: RSA-PSS over `expiry:company:email:placeholder_key`
- Behavior: prints Company/Email/Expiry, warns at <=7 days, blocks if expired or <=24h
*****
This container is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License.
You may use, modify, and share it for non-commercial purposes, provided that attribution is given.
Commercial use requires explicit permission.
see: https://emotion-service-api.sjfisher.com for commercial terms
© 2025 SJFIsher
Content type
Image
Digest
sha256:e4de5b7e3…
Size
6.9 MB
Last updated
12 months ago
docker pull stevef1uk/secure-packager