Skip to main content

Cyphra

Cyphra is a Python package for client-side encrypted messaging with two modes:

  • A standalone terminal client: cyphra chat --name Alice
  • An importable developer SDK: from cyphra import CyphraClient

Features

  • X25519 and ML-KEM-768 hybrid key agreement
  • HKDF-SHA384 and AES-256-GCM encryption
  • Ed25519 identity and message signatures
  • Local SQLCipher storage with Argon2id key derivation
  • Fingerprint-based contact approval
  • Fixed HTTPS relay transport
  • Opaque relay packets with no plaintext access

Install

python3 -m pip install cyphra

SDK Example

from cyphra import CyphraClient, CryptoEngine, DatabaseManager
from cyphra.network.http_client import HttpBrokerClient

engine = CryptoEngine()
database = DatabaseManager.from_passphrase("alice.db", "a long local passphrase")
CyphraClient.provision_identity(engine, database)
transport = HttpBrokerClient("https://post-q.vercel.app")
client = CyphraClient(engine, database, transport)

CLI

cyphra chat --name Alice

Persistent private keys, contacts, and encrypted message history remain on the client. The relay receives only public bundles, routing metadata, and opaque ciphertext.

Project repository: https://github.com/Anupam1707/PostQ

Metadata

Release files for cyphra 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cyphra 0.1.1
File Size Uploaded
cyphra-0.1.1.tar.gz 27.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cyphra 0.1.1
File Interpreter ABI Platform
cyphra-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 58.1 kB

Release files / cyphra-0.1.1.tar.gz

Download URL cyphra-0.1.1.tar.gz
Size 27.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a638d4e3e0e3cd1649f346493cb8a5834728b3b5cc0ac047e4343eb57305c88d
BLAKE2b-256 checksum
How to use checksums
ac6df246df1885c8995b2ed8707e948dd8d138d8b270f8bef131ac401d58cd01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.0

Release files / cyphra-0.1.1-py3-none-any.whl

Download URL cyphra-0.1.1-py3-none-any.whl
Size 30.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c685956a94b0a1998b4bbc60118625f79776ac62579624864f85170050d9b605
BLAKE2b-256 checksum
How to use checksums
cc54e31501ca996f269e0c354ba818f7c359fe9dc0def8de940d3c8d858a46a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.0

Release history Release notifications | RSS feed

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page