Nexus Gateway SDK - End-to-end encrypted data ingestion for IoT and applications
Project description
Nexus Enigma SDK
End-to-end encrypted data ingestion for Nexus Gateway.
Installation
pip install nexus-enigma
Quick Start
HTTP Client (Sender Apps)
from nexus_enigma import NexusEnigma
client = NexusEnigma(
app_key="your_app_key",
master_secret="BASE64_MASTER_SECRET_FROM_NEXUS",
base_url="https://your-nexus-server.com"
)
# Send encrypted sensor data
result = client.send({
"temperature": 25.5,
"humidity": 60,
"sensor_id": "temp_001"
})
print(result) # {"message": "Data accepted", "message_ids": [...]}
MQTT Client (IoT Devices)
from nexus_enigma import MQTTEnigmaClient
client = MQTTEnigmaClient(
host="your-mqtt-broker.com",
port=1883,
master_secret="BASE64_MASTER_SECRET_FROM_NEXUS",
source_id=1 # Your MQTT source ID from Nexus
)
# Connect and publish
client.connect()
client.publish("sensors/temperature", {
"temp": 25.5,
"humidity": 60
})
client.disconnect()
Features
- AES-256-GCM Encryption - Military-grade authenticated encryption
- HKDF Key Derivation - Daily rotating keys for forward secrecy
- Automatic Key Management - Keys derived from master secret automatically
- HTTP & MQTT Support - Choose your transport protocol
- Zero Configuration Encryption - Just provide your master secret
Security
All data is encrypted before leaving your device:
- Daily keys are derived using HKDF-SHA256
- Each message gets a unique random nonce
- AES-256-GCM provides encryption + integrity verification
- Only your Nexus server can decrypt the data
Requirements
- Python 3.8+
cryptography>=3.4.0requests>=2.25.0paho-mqtt>=1.6.0
License
MIT License - see LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nexus_enigma-1.0.0.tar.gz
(7.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nexus_enigma-1.0.0.tar.gz.
File metadata
- Download URL: nexus_enigma-1.0.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83889986c1fbaca46156d1f84e194f080e71f7d433b33115ce5a79e71244f97b
|
|
| MD5 |
a29d490b63fed3faea3f6967c879d1a6
|
|
| BLAKE2b-256 |
f638c5de6c312fdb17515fc6aca24c538f807444fb30c56d4a2f2912ff4d504f
|
File details
Details for the file nexus_enigma-1.0.0-py3-none-any.whl.
File metadata
- Download URL: nexus_enigma-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a585e3f180b29e66e43f211a143ed7dfaaed4d9397a512519495b7c58b816b33
|
|
| MD5 |
6e4e2294fe3b1397a0f4d7db739eb3a5
|
|
| BLAKE2b-256 |
dc8f0af88a839f578b83c13023aa6fbb21ed66208582b28d8cf77c963aefe76c
|