datagram-connections

Crates.iodatagram-connections
lib.rsdatagram-connections
version0.0.1
sourcesrc
created_at2024-10-17 18:38:21.665828
updated_at2024-10-17 18:38:21.665828
descriptionDatagram Connections Layer
homepage
repositoryhttps://github.com/nimble-rust/workspace
max_upload_size
id1413506
size23,517
Peter Bjorklund (piot)

documentation

README

Datagram Connections 🚀

Crates.io Documentation

The datagram-connections crate implements a challenge-and-response protocol for securely acquiring connections over datagrams. It includes both a client and host part, making it easy to establish and maintain connections with integrity and security.

Features ✨

  • Challenge Protocol: Secure your connections with a challenge-response handshake.
  • Client and Host Implementation: Both sides of the connection are supported out of the box.
  • Efficient Datagram Handling: Encode and decode datagrams with ease.
  • Secure Random Number Generation 🎲: Leverage cryptographic random values for secure nonce generation.

How it Works ⚙️

Client Connection Flow 💻

  1. Challenge Phase: The client initiates a challenge by sending a nonce.
  2. Connecting Phase: After receiving the server's challenge response, the client sends a connect request.
  3. Connected Phase: Once the server validates the request, the client is considered connected and can send/receive packets.

Host Response Flow 🏠

  1. Challenge Response: The host sends a challenge response with its own nonce.
  2. Connection Validation: The host validates incoming connection requests using the nonce and establishes the connection.

Get started

[dependencies]
datagram-connections = "0.0.2"
Commit count: 132

cargo fmt