Search code examples
c#.netblazorsignalr

Encrypt Blazor Server SignalR traffic


is it possible to encrypt the traffic for SignalR / Blazor Server Applications? When I go into Developer mode I can see the Websocket Stream and there you can see some values sometimes, so I asked myself if it would be possible to encrypt the traffic?

Thanks!


Solution

  • "If your SignalR application transmits sensitive information between the client and server, use SSL for the transport." from here. Encryption is handled by the transport layer. What you see in the browser is already

    1. decrypted (if using SSL)
    2. in the application layer (browser).

    In simple terms: there is no need for extra encryption.