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 Distribution
rust_x3dh-0.1.3.tar.gz
(13.5 kB
view hashes)
Built Distributions
rust_x3dh-0.1.3-cp37-abi3-win32.whl
(223.1 kB
view hashes)
Close
Hashes for rust_x3dh-0.1.3-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78089a8edf7b6abb5ffc6a266d339b26858e11f8c1769edfde18b081e237aad8 |
|
MD5 | 35b95f192e79dc97b4d0d5fcf5e003f1 |
|
BLAKE2b-256 | 29b6edda35f05b92e2e3771e2344d9b86f962915366fdce5b7d6f901f87baa53 |
Close
Hashes for rust_x3dh-0.1.3-cp37-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52ae47ba753201b788f1f68edb3d2be08daeaf15c8ae0ad1b714f59d4fb089db |
|
MD5 | d461264e94f0b7e552281ba341c05a97 |
|
BLAKE2b-256 | c0145db9f4630c84ddecdfe31ca0df59a26ecdd2aafafe403c65a9e705e971dd |
Close
Hashes for rust_x3dh-0.1.3-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 394941b027e792db2b6daaae0b664130e3a705da568fc49789235956895f690e |
|
MD5 | 66960845f68ff7f41dbb250b1ea36847 |
|
BLAKE2b-256 | 53dbb5fa5c9aac741e02b58d988108b7d70c8624b52a22f4893bfcb33dddfdac |
Close
Hashes for rust_x3dh-0.1.3-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33083fcfd92c2efdc19164cd3228ed5740d53ef2df103f14c763766cb4c753af |
|
MD5 | e4c4ed5649228e78f5e950fa465bd433 |
|
BLAKE2b-256 | 57848a555241131223f63e7815c7f1a9f13940cf4aca8fe418ef0bd4015f5f53 |
Close
Hashes for rust_x3dh-0.1.3-cp37-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76fb89296fdffcd9522aaa23902193d656f90368b01fe7f581cb85ece1f56f4a |
|
MD5 | 3a818634f8f80e95e3e345d399640d24 |
|
BLAKE2b-256 | 846618b983cd4bcb3bd01ddf628c614196b44e535c117e7521352fd1878f39e1 |
Close
Hashes for rust_x3dh-0.1.3-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bfe93fab8e19491e6f41918ec920b6a8a0e449c30953741a4e25879f5d62a9b |
|
MD5 | b5504f0e1897aba59470843f60344a5b |
|
BLAKE2b-256 | 75e8a81344b38aacdde10733dec3e4538fa15f180aacddee6f22fce6f92fa220 |