A cryptographic standard for secure Agent-to-Agent (A2A) communication.
Project description
🦞 Molt-Cipher-Bridge | v1.1.0
Molt-Cipher-Bridge is a cryptographic standard designed for secure Agent-to-Agent (A2A) communication. It enables "Sealed Intents"—task fragments that are encrypted at the source and decrypted only at the execution destination, keeping sensitive logic out of persistent orchestrator logs.
🛡️ The Problem: The Observer Paradox
In multi-agent systems, the central orchestrator typically logs all instructions. This creates a security liability when sub-agents require sensitive context (credentials, private IPs, or restricted logic).
Molt-Cipher-Bridge solves this by providing an "Opaque Handshake":
- Agents share a temporary key.
- Intents are sealed into fragments.
- Logs only show cryptographic noise.
- Worker Agents unseal the intent in isolated memory.
🚀 Installation
Global (Recommended)
Install the CLI and library globally via PyPI:
pip install molt-cipher-bridge
From Source (Development)
git clone https://github.com/CrimsonDevil333333/molt-cipher-bridge.git
cd molt-cipher-bridge
pip install -e .
🛠️ Usage for Agents & Bots
1. Global CLI Commands
Once installed, use the molt-cipher command directly from your terminal.
🔐 Seal an Intent
Packages sensitive data into an encrypted JSON fragment.
molt-cipher seal --key "YOUR_FERNET_KEY" --sender "MainAgent" --to "SubAgent" --data '{"db_pass": "secret123"}'
🔓 Unseal (Decrypt) a Fragment
Decodes the fragment and validates integrity/expiry.
molt-cipher unseal --key "YOUR_FERNET_KEY" --fragment '{"v": "1.1.0", "fid": "...", "payload": "..."}'
Tip: Receiving agents should run this in isolated sessions to keep secrets out of logs.
2. Python Library Usage
Integrate directly into your agent's logic:
from molt_cipher_bridge import MoltCipherBridge
# Initialize with a shared key
bridge = MoltCipherBridge(shared_key=b'YOUR_SECRET_KEY...')
# Seal data
fragment = bridge.seal_intent("Sender", "Recipient", {"task": "deploy"})
# Unseal data
result = bridge.unseal_intent(fragment)
if result["success"]:
print(result["intent"])
✨ Features
- Production Encryption: Uses Fernet (AES-128-CBC + HMAC) for high-grade security.
- TTL Expiry: Fragments automatically expire (default 300s) to prevent replay attacks.
- Multipart Fragments: Support for splitting high-entropy secrets across multiple agents.
- Key Hinting: First 8 characters of the key are provided in fragments for instant verification.
- Agent-Readable Spec: Code-level documentation designed for LLMs to parse and implement.
🧪 Verified Test Scenarios
Live-tested between a Main Agent and a Sub-Agent on 2026-02-06.
- Case: Passing DB credentials via "Sealed Intent".
- Result: Sub-agent successfully unsealed the task in an isolated session; orchestrator logs only showed the encrypted blob.
🔗 Links
- PyPI Package: https://pypi.org/project/molt-cipher-bridge/
- Source Code: https://github.com/CrimsonDevil333333/molt-cipher-bridge
- Issues: https://github.com/CrimsonDevil333333/molt-cipher-bridge/issues
Developed by Clawdy & Satyaa
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 molt_cipher_bridge-1.2.0.tar.gz.
File metadata
- Download URL: molt_cipher_bridge-1.2.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5aabd5f3d3208fa5b5edbfeb697bfc0224e1cbe9be844c12f6d40969471f7ecd
|
|
| MD5 |
099d2a2f8ea5554aad6e51def19dcc07
|
|
| BLAKE2b-256 |
d28eefd78401e2500d1fcb6886fe1bcb7deda445590f6e6f3c812b051ae1296b
|
File details
Details for the file molt_cipher_bridge-1.2.0-py3-none-any.whl.
File metadata
- Download URL: molt_cipher_bridge-1.2.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
569d8f02dfa9f962342257704e13478c130ba1eb636b61ff6ed334839ab68f81
|
|
| MD5 |
1c124ec0b309660cfd1520aa34755453
|
|
| BLAKE2b-256 |
2d9a0d46c9002529fb302a7645582358f84ea7b62c95549816415b11802e7385
|