Embeded the xxxdh, which iplementation of the Extended Triple Diffie-Hellman key exchange protocol written in Rust, on Python. xxxdh is written by Olexander Yermakov.
Project description
Rust-X3DH
Embeded the xxxdh, which iplementation of the Extended Triple Diffie-Hellman key exchange protocol written in Rust, on Python. xxxdh is written by Olexander Yermakov.
Implementation is close to the Signal Spec, but Ristretto point Curve25519 used as a curve for the default implementation. Though underlying algorithms could be changed fairly easily.
Usage
//! Basic example.
from rust_x3dh import x3dh_ser
u1_shared_secret_key, u2_shared_secret_key = x3dh_ser.gen_3xdh_secrets_key_pairs()
print(f"[u1_shared_secret_key]:{u1_shared_secret_key}")
print(f"[u2_shared_secret_key]:{u2_shared_secret_key}")
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for rust_x3dh-0.1.1-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92953464e8662fe569873de72798a7519b4a998cb5702c3ec55e18404aea307c |
|
MD5 | b392d93ab6ba9fb591f4d283fafaa064 |
|
BLAKE2b-256 | 14c80fa8e07616748a1a0839e2f923c01bd157636e00ca9da07c4d7217e95868 |
Close
Hashes for rust_x3dh-0.1.1-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5333dafaaead08d7e4941bf39049f9ad7d567291fa33220d19e428e48bce436c |
|
MD5 | dc7f246649883adba8c37540730f2319 |
|
BLAKE2b-256 | 6032a9ddcbc08e37082baef26c46d6e781b21df4af11eee593038683e9ed0363 |