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.
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.
End-to-end-encrypted direct + group messaging subprotocol. The server only sees ciphertext — keys are exchanged client-to-client.
TsgcWSPClient_E2EE
End-to-end encryption over a WebSocket carrier
Windows, macOS, Linux, iOS, Android
Enterprise
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');
5 published properties, 9 methods, 19 events — pulled from the component reference.
Published properties: Client, Broker, Guid.
Events: OnConnect, OnDisconnect, OnError.
Methods: WriteData.
Published properties: Version.
Properties: E2EE_Options.
Methods: Subscribe, UnSubscribe.
Authoritative sources for the protocols this component implements.
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. | Abrir | |
| 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. | Abrir | |
| Manual do usuário (PDF) Manual completo cobrindo todos os componentes da biblioteca. | Abrir |