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.

Classe do componente

TsgcWSPClient_E2EE

Protocolo

End-to-end encryption over a WebSocket carrier

Plataformas

Windows, macOS, Linux, iOS, Android

Edição

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');

O que tem por dentro

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.

Diagnostics

Published properties: Version.

Encryption

Properties: E2EE_Options.

Subscriptions

Methods: Subscribe, UnSubscribe.

Especificações & referências

Authoritative sources for the protocols this component implements.

Documentação & Demos

Acesse a referência do componente, pegue o projeto demo pronto para executar e baixe a versão de avaliação.

Projeto demo — Demos\Protocols\E2EE Exemplo pronto para executar. Acompanha o pacote sgcWebSockets — baixe a versão de avaliação abaixo.
Documento técnico (PDF) Recursos, início rápido, exemplos de código para Delphi & C++ Builder e referências de fontes primárias — somente deste componente.
Manual do usuário (PDF) Manual completo cobrindo todos os componentes da biblioteca.

Ready for End-to-End Encryption?

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