UXSP — Universal Exchange Security Protocol
UXSP (Universal Exchange Security Protocol) is an enterprise-grade, hybrid post-quantum security framework. It is designed from the ground up to protect your web APIs, file streams, messaging layers, and live media against classical eavesdroppers and the upcoming threat of quantum computers.
💡 What is UXSP?
In standard web applications, data sent over the internet relies on traditional encryption (like RSA or ECC). However, upcoming quantum computers will soon be powerful enough to break this traditional encryption, exposing sensitive user records, financial transactions, and private messages.
UXSP solves this problem today by providing "Hybrid Post-Quantum Security":
- Double-Layer Armor: It combines trusted classical encryption (AES-256-GCM + X25519/Ed25519) with modern NIST-standardized Post-Quantum Cryptography algorithms (ML-KEM FIPS 203 and ML-DSA FIPS 204).
- Zero-Complexity for Developers: Instead of writing hundreds of lines of complex cryptographic setup, UXSP provides beautiful, high-level APIs that allow developers to secure entire applications, web endpoints, multi-gigabyte file transfers, and even WebRTC video streams with just 1 line of code.
✨ Features Overview
UXSP comes packed with capabilities to handle any data transfer scenario securely:
- Send Any Format: Whether you are sending plain text, structured JSON, raw binary, large files, documents (PDF, Word), images, photos, audio, voice memos, archives (Zip), locations, or contacts, UXSP provides dedicated classes for all data types. It automatically serializes, chunks, encrypts, and packages the data.
- Live Video Calls: Negotiate high-performance AES-GCM secure WebRTC sessions for real-time video calls with a single line of code.
- Live Voice Calls: Establish encrypted audio streams with configurable codecs and sample rates for highly secure voice communication.
- Live CCTV Integration: Securely connect and stream data from live CCTV cameras, protecting sensitive monitoring feeds from interception.
- Web Framework Middlewares: Drop-in middlewares for FastAPI, Django, and Flask. They automatically decrypt incoming requests, verify identities, and encrypt outbound responses, replacing the need for traditional CSRF tokens.
- Durable Replay Protection (NonceStores): Out-of-the-box support for Memory, Redis, and Postgres-backed NonceStores (both synchronous and asynchronous) to ensure intercepted messages can never be replayed by an attacker.
- Frontend Interoperability: A companion NPM package allows your web frontend to encrypt data directly in the browser before it even hits the network.
(For detailed implementations, tutorials, and code examples of these features, please refer to the docs/ directory).
⚙️ Installation & Setup
UXSP is highly modular. You only need to install the dependencies required for your specific framework and storage needs.
| Installation Command | Included Components & Dependencies |
|---|---|
pip install uxsp |
Base uxsp.secure (cryptography, liboqs-python, argon2-cffi) |
pip install uxsp[aio] |
uxsp.secure + uxsp.aio (Asynchronous capabilities) |
pip install uxsp[django] |
uxsp.secure + Django Integrations |
pip install uxsp[flask] |
uxsp.secure + Flask Integrations |
pip install uxsp[fastapi] |
uxsp.secure + FastAPI, Starlette, HTTPX Integrations |
pip install uxsp[postgres] |
uxsp.secure + Postgres (psycopg2-binary) |
pip install uxsp[redis] |
uxsp.secure + Redis (redis) |
pip install uxsp[aio, django] |
uxsp.secure + uxsp.aio + Django |
pip install uxsp[aio, postgres] |
uxsp.secure + uxsp.aio + Postgres |
pip install uxsp[aio, redis] |
uxsp.secure + uxsp.aio + Redis |
pip install uxsp[aio, django, postgres] |
uxsp.secure + uxsp.aio + Django + Postgres |
pip install uxsp[aio, django, redis] |
uxsp.secure + uxsp.aio + Django + Redis |
pip install uxsp[all-django] |
uxsp.secure + uxsp.aio + Django + Postgres + Redis |
pip install uxsp[all-flask] |
uxsp.secure + uxsp.aio + Flask + Postgres + Redis |
pip install uxsp[all-fastapi] |
uxsp.secure + uxsp.aio + FastAPI + Postgres + Redis |
pip install uxsp[all] |
Complete stack with all web frameworks and storage backends |
System Prerequisites (liboqs)
UXSP utilizes liboqs for C-native Post-Quantum Cryptography acceleration. You must install the required build tools for your platform:
- Ubuntu / Debian / Mint:
sudo apt update && sudo apt install -y build-essential cmake ninja-build libssl-dev git
- Fedora / RHEL / CentOS:
sudo dnf groupinstall -y "Development Tools" && sudo dnf install -y cmake ninja-build openssl-devel git
- macOS:
brew install cmake ninja openssl@3
- Windows: Requires Visual Studio Build Tools (C++), CMake, and Git. (Note: Windows support is experimental and falls back to msvcrt for certain operations).
(If liboqs fails to compile on your system, UXSP will automatically fall back to its built-in pure Python Post-Quantum Cryptography implementations, ensuring it always runs).
🚀 How to Access the Project (Documentation)
For detailed step-by-step developer tutorials, architectural explanations, and complete code examples, please head to the docs/ directory.
The documentation is written to be perfectly clear, even if you are a new programmer without deep domain knowledge in cryptography or networking.
Start by reading the Index (docs/index.md), which will guide you through:
- High-level and Low-level APIs
- Synchronous vs. Asynchronous Usage
- Live Video, Audio, and CCTV Streaming
- Django, Flask, and FastAPI Middleware configurations
- Replay Protection with NonceStores
- The UXSP Command Line Interface (CLI)
📄 License & Security
UXSP is released under the MIT License. For security disclosures, vulnerability reporting, and threat models, please consult SECURITY.md.
UXSP v1.2.0 Maintained by SIVA RAJA S
Metadata
Release files for uxsp 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| uxsp-1.2.0.tar.gz | 250.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| uxsp-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 404.0 kB
Release files / uxsp-1.2.0.tar.gz
| Download URL | uxsp-1.2.0.tar.gz |
|---|---|
| Size | 250.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d16dcdddd27573bdcb50e43c4b5932590dc11ad5dcdc45f06af93331bcf5d840
|
|
BLAKE2b-256 checksum How to use checksums |
2766ecc722ac4721feebe52af2242dbd0526c0ced687806e159b347fc81bdf90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.
Transparency logRelease files / uxsp-1.2.0-py3-none-any.whl
| Download URL | uxsp-1.2.0-py3-none-any.whl |
|---|---|
| Size | 153.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4270082528e0c80d0cd224cf36456109a5d1d769454a907264981188b7ab769b
|
|
BLAKE2b-256 checksum How to use checksums |
6b44f50a4d07f30e0d1fd8d4b49797c28b330712730fcbcf3f8aba3f4538f692
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 29, 2026.
Transparency log