eCapture Decryptor
Use eCapture Decryptor v1.4.4 to turn a packet capture and its TLS session secrets into application messages in your own program. For example, a test runner can use the SDK to check that a recorded HTTP response carries the expected status. The Go package and module are named ecapture_decryptor. Run the Go quick start · v1.4.4 release
Choose an integration
| What your program has | Where to start | What your program receives |
|---|---|---|
| A completed pcapng with embedded TLS secrets, or a pcap and a matching NSS key log | Go file API | A channel of decoded events that your program drains |
| A producer writing pcapng blocks to a pipe or connection | Go streaming API | A callback for each decoded event, including events unlocked by a later secrets block |
| A C or C++ executable that processes capture files | Native library | A JSON file containing event metadata |
In Go, the result type is *types.DecryptedPacket. A single HTTP response can span many network packets. By default, the SDK emits the reconstructed message. With incremental HTTP events enabled, it can emit headers, body chunks and the end of the message separately. Choose the representation that your consumer expects. API and event fields · Protocols and output modes
Layered architecture
The SDK reads, tracks connections, decrypts and parses inside the caller's process. This diagram follows the main processing path through the source responsibilities in v1.4.4. All layers run in the same process.
crypto/ supplies KeyLogStore, handshake and record decryption, and cipher suites; types/ defines shared options, interfaces and events. capi/ wraps the Go file API in a C ABI. JSON/HAR export belongs to the relevant wrapper, example or caller. Input and connection management · Decryptor factory · Shared interfaces
From capture data to events
Captures carry network data and capture metadata; key logs supply session secrets. These paths meet at decryption. Classic pcap uses external keys, while pcapng can also carry keys in DSBs. The external log below applies to Go reader/file entry points accepting that argument; the pcapng callback API reads keys only from DSBs in its input.
Many network packets can form one application message, and one message can produce several incremental events. Output event counts therefore differ from capture packet counts. Events also carry process and handshake metadata when the capture provides it. Event data model · Output modes · Late-key flow
Where eCapture and eCaptureQ fit
eCapture v2.12.0 embeds this SDK version. Its packet-based text mode sends packets and secrets to the SDK on the capture host. You can also save a pcapng with eCapture and read that file later in a separate Go or C program. Reading a saved test capture requires neither a running collector nor eBPF privileges. Collector capture modes · Pinned SDK dependency
eCaptureQ subscribes to the collector's ecapture.v2 WebSocket and can export a native pcapng file. Pass that file to the SDK. A WebSocket message still has its Protobuf envelope, which the SDK's pcapng reader cannot consume directly. eCaptureQ native file export
Distribution and licensing
The project publishes Go source and prebuilt C libraries under separate terms. Its license includes an exception for integration in eCapture and works derived from eCapture. For a standalone application, consult the source or binary terms for the form you use. The binary license covers non-commercial linking and specifies attribution and commercial licensing requirements. Source license and eCapture exception · Binary license