Skip to content
Crypt-in
Notify me for April 2027
🔧 The developer beta is live — free for developers. Flash your own ESP32-S3 and test it. Learn more →

Python tools (internal → SDK Q2 2027)

The Python files in tools/ are currently internal test harnesses, used during development and red team sessions. They are not a distributable SDK today.

There is no pip install cryptin-sdk, there is no Python package, and there is no support commitment attached to these files. They exist to drive the dongle from a shell while the firmware is being tested — nothing more.

Coming Q2 2027: a proper Python client ships as part of CryptinSDK — Apache 2.0, free, same source repository as the Windows DLL and the Linux CLI. Not a separate product. If it is ready earlier, it ships earlier.

The .NET 9 Linux CLI shipped on 3 November 2026; current release cli-linux-2026-11-24 of jaffa2970/Crypt-in-BETA — a separate, non-Latest download for Linux x86-64 only (no macOS). Its source lives in cryptin-sdk-beta (src/CryptinCli/, Apache-2.0). On macOS you still have to write your own client against the published HID protocol.

They are often confused. They are not the same thing and they do not ship together:

Linux CLI Python client
Ships 3 November 2026 — current release cli-linux-2026-11-24 of jaffa2970/Crypt-in-BETA, a separate non-Latest download Q2 2027
Built on .NET 9, Linux x86-64 self-contained binary Python
Licence Apache 2.0 Apache 2.0
Part of CryptinSDK CryptinSDK

Both live inside CryptinSDK — neither is a separate product. The Linux CLI binary ships as a separate download from the Windows beta, not as part of a single bundle. The Python client is still planned Q2 2027; do not attach the CLI’s November 2026 date to it.

Target Use When
Windows application, C# Windows SDK (DLL) — Apache-2.0 Source published (beta) — cryptin-sdk-beta
Linux x86-64, scripting Linux CLI, .NET 9, Apache-2.0 Shipped 3 November 2026 — current release cli-linux-2026-11-24
macOS Write your own client HID protocol is public
Python Python client, Apache-2.0, part of CryptinSDK Planned Q2 2027
Any other language The HID protocol is published in full Available

The CLI is a .NET 9 self-contained binary built on CryptinSDK. Eight commands:

cryptin status cryptin unlock cryptin activate cryptin encrypt
cryptin decrypt cryptin open-offline cryptin reset cryptin recover

activate [--replace] activates the free beta licence from Linux. It is anonymous and needs the dongle unlocked; a licence already on the chip is kept unless you pass --replace.

open-offline reads the 24 BIP-39 words from stdin and decrypts without the dongle. Since cli-linux-2026-11-24, run from a terminal, it first prints These are NOT wallet words - never use them in a wallet, never type a wallet's words here. — with the words piped in, the output does not change. reset power-cycles a development board through its UART bridge; recover revives a dongle that boots without its app (it shows up as a serial port and status says no dongle) by rebooting it over the chip’s own USB-Serial/JTAG. Neither touches keys: recovery from the 24 words is done in CryptinPersonal on Windows.

The PIN is read from stdin, never from argv — it must not end up in the shell history or in the process table, where any local user could read it with ps.

Only activate talks to the network — to the licence server. Every other command is local. Two exit codes belong to it: 13 means the licence server refused, 14 means it could not be reached. Setting up the dongle — flashing, delivery of the 24 words and the PIN — still happens on Windows with CryptinPersonal; activation no longer has to. Decrypted files are written at mode 0600 and new directories at 0700. Tested on Ubuntu 26.04.1 LTS in VMware; requires libudev.so.1.

Nothing about the Python tools is needed to interoperate. The HID protocol and the .crin format are published in enough detail to write an independent client in any language, with no agreement and no repository access. That is the point of publishing them.

The one thing worth repeating from the protocol reference: CMD_VERIFY_PIN (0x08) comes first. Five opcodes are exempt from the gate — 0x01, 0x08, 0x09, 0x0A, 0x0B — and every other one is refused with ERR_PIN_REQUIRED until it succeeds.

There is no derive_session_key. Command 0x05 is reserved and not implemented.

Since firmware 2026-08-02 the file key is derived entirely on the dongle. The host streams plaintext chunks in with CMD_ENCRYPT_BLOCK (0x0D), or ciphertext chunks with CMD_DECRYPT_BLOCK (0x0E), and gets the result back: nothing that could reconstruct the key crosses the bus. CMD_GET_SECRET (0x04) is deprecated: on production firmware (-prod) it answers ERR_DEPRECATED and the file secret never leaves the chip, so a client cannot derive a file key itself and does not need to. On the developer beta track (-dev) it still responds with file_secret — intentionally, because that track is open for security research.

See the licence page. The SDK — Windows DLL, Linux CLI, and the Python client from Q2 2027 — is Apache-2.0, one package. The Python tools in tools/ today are internal and are not licensed for redistribution as a product.

Alcuni contenuti sono stati redatti con il supporto di strumenti di intelligenza artificiale generativa e revisionati dall'autore. Le foto con l'etichetta "Prototype" sono foto vere del prototipo. Le immagini con l'etichetta "Illustration" o "Render" sono illustrative.

Some content was drafted with the support of generative AI tools and reviewed by the author. Photos labelled "Prototype" are real photos of the prototype. Images labelled "Illustration" or "Render" are illustrative.

Einige Inhalte wurden mit Unterstützung generativer KI-Werkzeuge verfasst und vom Autor überprüft. Fotos mit dem Hinweis „Prototype" sind echte Fotos des Prototyps. Bilder mit dem Hinweis „Illustration" oder „Render" dienen der Veranschaulichung.

Algunos contenidos han sido redactados con el apoyo de herramientas de IA generativa y revisados por el autor. Las fotos con la etiqueta «Prototype» son fotos reales del prototipo. Las imágenes con la etiqueta «Illustration» o «Render» son ilustrativas.

In caso di conflitto tra versioni linguistiche, prevale il testo in lingua italiana.