Standalone Ultra-Secure Communication Protocol - Python SDK
Project description
๐ก๏ธ Sibna Protocol โ Python SDK
Sibna Protocol is a standalone, ultra-secure communication framework with zero external dependencies. This SDK provides a seamless Python interface to the hardened Sibna Rust Core โ delivering military-grade cryptography at native speed.
โจ Key Features
| Feature | Details |
|---|---|
| ๐ Military-Grade Security | X3DH + Double Ratchet protocol (Signal-compatible) |
| ๐ Native Performance | Pre-compiled Rust core โ no build step required |
| ๐ฆ Zero Dependencies | Completely standalone, no Rust toolchain needed |
| ๐ก๏ธ Perfect Forward Secrecy | Automatic key rotation per message |
| ๐ป Cross-Platform | Windows, Linux, macOS โ all supported |
| ๐ ChaCha20-Poly1305 | AEAD encryption with authenticated data support |
๐ Installation
pip install sibna
Requires Python 3.8+. No other system dependencies needed.
โก Quick Start
Symmetric Encryption
import sibna
# 1. Generate a secure 32-byte key
key = sibna.generate_key()
# 2. Encrypt your message
plaintext = b"Top secret data"
ciphertext = sibna.encrypt(key, plaintext)
# 3. Decrypt and recover
decrypted = sibna.decrypt(key, ciphertext)
print(decrypted.decode()) # "Top secret data"
Authenticated Encryption (with AAD)
import sibna
key = sibna.generate_key()
plaintext = b"Sensitive payload"
aad = b"context-header" # Additional Authenticated Data
ciphertext = sibna.encrypt(key, plaintext, associated_data=aad)
decrypted = sibna.decrypt(key, ciphertext, associated_data=aad)
Secure Session (X3DH + Double Ratchet)
import sibna
# Create a secure context with master password protection
ctx = sibna.Context(password=b"your-master-password")
# Initialize a secure session with a peer
session = ctx.create_session(b"peer_public_identity_key")
# Encrypt โ automatic ratcheting every message
encrypted = session.encrypt(b"Hello, Secure World!")
๐๏ธ Architecture
Sibna uses a layered security approach:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Your Application โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Sibna Python SDK (this) โ โ pip install sibna
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Sibna Rust Core (pre-built) โ โ bundled .dll / .so / .dylib
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ ChaCha20-Poly1305 ยท Ed25519 โ
โ X3DH ยท Double Ratchet โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
- Transport Layer: Agnostic โ works over WebSocket, HTTP, MQTT, or raw TCP.
- Messaging Layer: Sealed envelopes with metadata resistance.
- Cryptographic Core: Hardened Rust implementation โ constant-time, memory-safe.
๐ Security
- All cryptographic operations are performed in the native Rust core
- Memory is zeroed after use (no key material left in heap)
- Side-channel resistant implementations
- Security issues: please email security@sibna.dev
๐ License
Licensed under the Apache License 2.0.
See LICENSE for full details.
๐ค Contributing
Issues and pull requests are welcome at github.com/SibnaOfficial/libsa.
Developed with โค๏ธ by the Sibna Security Team.
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 sibna-1.1.0.tar.gz.
File metadata
- Download URL: sibna-1.1.0.tar.gz
- Upload date:
- Size: 771.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56981577e36e7543ac62f6febc6edc8441d9dd07734ae94ae9ba2bf9637bdf8c
|
|
| MD5 |
b3de2276ba3b6bd40128ec1d707b500e
|
|
| BLAKE2b-256 |
c690687e43446c141b61f1e63a70d432c1e209742b383a1363e4b6adc344e495
|
Provenance
The following attestation bundles were made for sibna-1.1.0.tar.gz:
Publisher:
workflow.yml on SibnaOfficial/libsa
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sibna-1.1.0.tar.gz -
Subject digest:
56981577e36e7543ac62f6febc6edc8441d9dd07734ae94ae9ba2bf9637bdf8c - Sigstore transparency entry: 1201222647
- Sigstore integration time:
-
Permalink:
SibnaOfficial/libsa@928ea0363e425779eb5d7b6545262c6d8d0753c4 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/SibnaOfficial
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@928ea0363e425779eb5d7b6545262c6d8d0753c4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sibna-1.1.0-py3-none-any.whl.
File metadata
- Download URL: sibna-1.1.0-py3-none-any.whl
- Upload date:
- Size: 773.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d678df64a45ad6544fe6217ccf6b8f8d57fa0bffb23492b738550635ebddaeb
|
|
| MD5 |
930d100dd64f9357bf2a169c09d2dfb9
|
|
| BLAKE2b-256 |
b0c20861ed61a22b24b55691fd25411a9ac7f6491f3d45f9764cce5803e75119
|
Provenance
The following attestation bundles were made for sibna-1.1.0-py3-none-any.whl:
Publisher:
workflow.yml on SibnaOfficial/libsa
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sibna-1.1.0-py3-none-any.whl -
Subject digest:
7d678df64a45ad6544fe6217ccf6b8f8d57fa0bffb23492b738550635ebddaeb - Sigstore transparency entry: 1201222658
- Sigstore integration time:
-
Permalink:
SibnaOfficial/libsa@928ea0363e425779eb5d7b6545262c6d8d0753c4 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/SibnaOfficial
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@928ea0363e425779eb5d7b6545262c6d8d0753c4 -
Trigger Event:
push
-
Statement type: