2 releases
Uses new Rust 2024
new 0.1.1 | Mar 12, 2025 |
---|---|
0.1.0 | Mar 12, 2025 |
#33 in #peer
182 downloads per month
11KB
195 lines
Secure Peer Protocol (SPP)
Description
Chat with friends in a truly cryptographically secure way.
Intended to work as 5th OSI layer usually on top of TCP/IP.
Mechanism
- You and friend exchanged Ed25519 public keys through reliable way.
- Shared key is obtained using X25519. X25519 public keys are signed and verified using Ed25519.
- Auth key is derived from shared key using SSKDF.
- Messaging using auth key with ChaCha20-Poly1305.
Preparation before using
- Generate private key, give your public key to friend.
- Get friend's public key through reliable channel.
See examples/generate_key_pair.rs
.
How to use
Client
Connect to your friend.
See examples/client.rs
.
Server
Make your friend available to connect to you.
See examples/server.rs
.
Dependencies
~60MB
~1.5M SLoC