DEV Community

Muhammed Shafin P
Muhammed Shafin P

Posted on

Qeltrix V6 — Network-Native Encrypted Streaming Container

License: CC BY-SA 4.0

Architecture: C shared library (.so/.dll) + Python cryptography library

Repository: https://github.com/Qeltrix/Qeltrix-v6

⚠️ PROOF-OF-CONCEPT ONLY. Not for production or security-critical use without an independent cryptographic audit. Created fully with Claude Sonnet 4.6.

What is Qeltrix V6?

Qeltrix V6 represents the network-native evolution of the Qeltrix encrypted archiving system. Unlike traditional encryption methods that require an entire file to be processed before it can be used, V6 is designed to turn any data stream into a live, seekable, and encrypted container in real-time. This "stream-first" approach allows for the encryption of data as it arrives from any source, making it an ideal foundation for modern cloud storage and secure file-sharing applications.

The system’s standout capability is its native support for HTTP Range Requests. This allows users to "seek" into massive encrypted files—such as high-definition videos—and begin playback or extract specific data segments instantly without downloading or decrypting the entire container. By breaking data into discrete, authenticated blocks, Qeltrix V6 ensures that only the requested information is processed, drastically reducing latency and bandwidth consumption in media streaming scenarios.

System Architecture

The project utilizes a hybrid architecture that combines the performance of low-level C with the robust security ecosystem of Python. The C core handles the "heavy lifting," including high-speed block framing, memory-efficient permutations, and the complex mathematics required for random-access seeking. Meanwhile, the Python layer leverages the cryptography library to manage high-level logic, such as key derivation and the orchestration of AES-256-GCM or ChaCha20-Poly1305 ciphers.

┌──────────────────────────────────────────────────────────┐
│                    Qeltrix V6 System                     │
│                                                          │
│  ┌─────────────────────┐    ┌──────────────────────────┐ │
│  │  C Shared Library   │    │  Python (cryptography)   │ │
│  │  libqeltrix_v6.so   │    │                          │ │
│  │  qeltrix_v6.dll     │    │  ● AES-256-GCM           │ │
│  │                     │    │  ● ChaCha20-Poly1305      │ │
│  │  ● Block framing    │◄──►│  ● HKDF-SHA256 (CDK)     │ │
│  │  ● Permutation      │    │  ● SHA-256 hashing       │ │
│  │  ● Header/footer    │    │  ● Master key wrapping   │ │
│  │  ● TCP networking   │    │  ● V6-C metadata crypto  │ │
│  │  ● HTTP parsing     │    │                          │ │
│  │  ● Seek math        │    │                          │ │
│  └─────────────────────┘    └──────────────────────────┘ │
│                                                          │
│  ┌───────────────┐  ┌───────────────┐  ┌──────────────┐  │
│  │ pack/unpack   │  │ GatewayServer │  │  SeekServer  │  │
│  │ container.py  │  │ gateway.py    │  │ (HTTP+Range) │  │
│  └───────────────┘  └───────────────┘  └──────────────┘  │
└──────────────────────────────────────────────────────────┘
Enter fullscreen mode Exit fullscreen mode

Performance and Security Features

Qeltrix V6 is engineered for high-performance environments. It utilizes a ThreadPoolExecutor to provide true parallel processing across all platforms, including Windows. This multi-threaded approach allows the system to encrypt or decrypt multiple data blocks simultaneously, fully saturating modern multi-core CPUs. On Windows, the system is fully supported via a .dll built with MinGW, ensuring consistent performance across different operating systems.

Security is implemented through a multi-layered approach. Each data block maintains its own integrity via SHA-256 hashing and AEAD (Authenticated Encryption with Associated Data) tags. The system employs a dual-layer key hierarchy where a Content Derived Key (CDK) is wrapped within a Master Key (MK). Furthermore, the V6-C metadata is itself encrypted, ensuring that even the internal structure and properties of the container remain hidden from unauthorized parties. Whether using the hardware-accelerated AES-256-GCM or the mobile-friendly ChaCha20-Poly1305, Qeltrix V6 provides a flexible and powerful toolkit for the next generation of secure networking.

Top comments (0)