Skip to main content

A cryptographic standard for secure Agent-to-Agent (A2A) communication.

Project description

🦞 Molt-Cipher-Bridge | v1.2.0

PyPI version License: MIT

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":

  1. Agents share a temporary key (Whisper).
  2. Intents are sealed into fragments.
  3. Logs only show cryptographic noise.
  4. Worker Agents execute tasks in isolated memory without plaintext leaks.

🚀 Installation

Global (Recommended)

Install the CLI and library globally via PyPI:

pip install molt-cipher-bridge

⚙️ How It Works (Deep Dive)

1. The Whisper (Key Exchange)

Before agents can bridge intents, they must share a symmetric key. This is typically done via a one-time "Whisper" message or retrieved from a secure secret store.

from molt_cipher_bridge import MoltCipherBridge
key = MoltCipherBridge.generate_shared_key()
# "j6Jc8MPldurpErwl6VYatp-dTunR3Xrioo1NWiNk4w8="

2. The Sealing (Encryption)

The Sender Agent encrypts the payload using the shared key. The payload includes:

  • s: Sender ID
  • r: Recipient ID
  • d: Data (The Intent)
  • exp: Expiry timestamp (TTL)
  • sig: SHA-256 signature hint

3. The Unsealing (Zero-Log Execution)

The Recipient Agent receives the fragment. Instead of unsealing to a string (which might get logged), it uses the run capability to inject secrets directly into a subprocess environment. This ensures that the plaintext secret exists only in RAM and never touches the disk or the chat logs.


🛠️ CLI Command Reference

🔐 Seal an Intent

Package sensitive data into an encrypted JSON fragment.

molt-cipher seal \
  --key "YOUR_KEY" \
  --sender "Main" \
  --to "Worker" \
  --data '{"secrets": {"DB_PASSWORD": "my-ultra-secret"}}'

🔓 Unseal (Decrypt)

Decodes the fragment and validates integrity/expiry.

molt-cipher unseal --key "YOUR_KEY" --fragment '{"v": "1.2.0", ...}'

⚡ Run (Secure Execution)

Directly executes a command by injecting sealed secrets into the environment.

# Use $ to escape variable names so they are resolved INSIDE the bridge
molt-cipher run \
  --key "YOUR_KEY" \
  --fragment 'FRAGMENT_JSON' \
  --cmd "curl -H 'Auth: $DB_PASSWORD' https://api.internal"

✨ Features

  • Zero-Log Execution: Pass secrets via ENV variables to child processes.
  • Fernet (AES-128-CBC + HMAC): Standard, authenticated encryption.
  • TTL Security: Automatic fragment expiration (default 5 mins).
  • Key Hinting: Quickly verify keys with the 8-char hint field.
  • Multipart Support: Split a single intent across multiple agents.

🧪 Verified Test Scenarios

Live-tested between a Main Agent and a Sub-Agent on 2026-02-06.

  • Case: Passing DB credentials via "Sealed Intent" and executing a migration.
  • Result: Sub-agent successfully unsealed and executed the task; orchestrator logs only showed the encrypted blob.

🔗 Links


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

molt_cipher_bridge-1.3.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

molt_cipher_bridge-1.3.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file molt_cipher_bridge-1.3.0.tar.gz.

File metadata

  • Download URL: molt_cipher_bridge-1.3.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for molt_cipher_bridge-1.3.0.tar.gz
Algorithm Hash digest
SHA256 18576cc3a7d189043c0695e9fdc7f16e7a573b71aeb3f2c6e7ff2f5b161ffef8
MD5 490cdab7023c8563fef17e1071e44976
BLAKE2b-256 f5e226b23f7628d61f76b1f7135662da32771424d93170614be57511579f9d3d

See more details on using hashes here.

File details

Details for the file molt_cipher_bridge-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for molt_cipher_bridge-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff45ac6c415f789d82a6d89d11ade7ffd6189a9c168fdd33ad270a5e9592ff96
MD5 3751d321af79875ca311699745bd2ea6
BLAKE2b-256 4550508c94561f42ade1446de1093af982dd72ff85a044293934607e4d600ac6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page