SDK and command line
The same code the product is built on, for putting protection into your own tools and pipelines.
EarlyThe SDK and the command-line tool are what the product itself is built on, so they work, but they are not published as a public package yet and their interfaces may still change. Talk to us if you want to build on them now.
What is in it
| Part | What it does |
|---|---|
| File format | Reads and writes protected files: signed header, chunked AES-256-GCM content. Protect a stream without holding it in memory. |
| Client | Talks to an installation: sign in, protect, share, set permissions, ask for a key. |
| Policy | The permission model: what a recipient may do, and until when. |
| Key wrapping and signatures | ML-KEM-1024 key transport and ML-DSA-87 signatures, from the Go standard library. |
| Browser build | The same encryption compiled to WebAssembly, so files are encrypted on the device before anything is sent. |
Command line
The governate tool protects and opens files from a terminal or a script, signs in to your installation, and sets who may do what.
governate login https://docs.example.com
governate protect report.pdf
governate share report.pdf.gvf [email protected]
governate open report.pdf.gvf
Opening asks your installation for the file's key each time, so a file that has been unshared or revoked no longer opens.
The API underneath
Everything the website does goes through the installation's HTTP API, and so can your own software, with a person's token and the same checks.
Read further
- Command line: commands and permission flags.
- API: endpoints, status codes, what is stable.
- File format: what a protected file contains.