E2EE Protocol

End-to-End Encryption protocol for WebSocket messaging. Messages are encrypted on the sender and can only be decrypted by the intended recipient — the server never sees plaintext.

TsgcWSPClient_E2EE / TsgcWSPServer_E2EE

End-to-end-encrypted direct + group messaging subprotocol. The server only sees ciphertext — keys are exchanged client-to-client.

Klasa komponentu

TsgcWSPClient_E2EE

Protokół

End-to-end encryption over a WebSocket carrier

Platformy

Windows, macOS, Linux, iOS, Android

Edycja

Enterprise

Drop the component, set a few properties, go

Set a UserId, send DirectMessage or CreateGroup + JoinGroup + SendGroupMessage; keys negotiated transparently.

uses
  sgcWebSocket, sgcWebSocket_Server, sgcWebSocket_Protocol_E2EE_Server,
  sgcWebSocket_Protocol_E2EE_Client;

// --- Server -----------------------------------------------
ServerE2EE := TsgcWSPServer_E2EE.Create(nil);
ServerE2EE.Server := WSServer;

// --- Client -----------------------------------------------
ClientE2EE := TsgcWSPClient_E2EE.Create(nil);
ClientE2EE.Client := WSClient;
ClientE2EE.E2EE_Options.UserId := 'alice';
WSClient.Active := True;

// 1-to-1 encrypted direct message
ClientE2EE.SendDirectMessage('bob', 'hello bob');

// Group chat — create, join, broadcast
ClientE2EE.CreateGroup('team-42');
ClientE2EE.JoinGroup('team-42');
ClientE2EE.SendGroupMessage('team-42', 'standup at 10');
ClientE2EE.LeaveGroup('team-42');

Co jest w środku

5 published properties, 9 methods, 19 events — pulled from the component reference.

Connection

Published properties: Client, Broker, Guid.

Lifecycle

Events: OnConnect, OnDisconnect, OnError.

Advanced

Methods: WriteData.

Diagnostyka

Published properties: Version.

Encryption

Properties: E2EE_Options.

Subscriptions

Methods: Subscribe, UnSubscribe.

Specyfikacje i odniesienia

Authoritative sources for the protocols this component implements.

Dokumentacja i dema

Przejdź bezpośrednio do dokumentacji komponentu, pobierz gotowy do uruchomienia projekt demonstracyjny i pobierz wersję próbną.

Projekt demonstracyjny — Demos\Protocols\E2EE Gotowy do uruchomienia projekt przykładowy. Dostarczany w pakiecie sgcWebSockets — pobierz wersję próbną poniżej.
Dokument techniczny (PDF) Funkcje, szybki start, przykłady kodu dla Delphi i C++ Builder oraz odniesienia do źródeł — tylko ten komponent.
Podręcznik użytkownika (PDF) Kompleksowy podręcznik obejmujący każdy komponent biblioteki.

Ready for End-to-End Encryption?

Download the free trial and add zero-knowledge messaging to your application.