LemmeDeskLemmeDesk

How end-to-end encryption works in LemmeDesk

Why the server only matches devices, what DTLS-SRTP means, what happens when a relay is needed and what the security code verifies.

In LemmeDesk, your screen, sound and keystrokes flow directly between two computers and end-to-end encrypted: data is encrypted before it leaves your computer and decrypted only on the other one. Our server only matches the two computers and cannot see what happens in your session. This article explains, in plain terms, how a connection is made.

In short

  • The LemmeDesk server only introduces the two computers.
  • Screen, sound, mouse, keyboard and chat flow directly between the two computers (WebRTC, peer-to-peer).
  • That stream is end-to-end encrypted with DTLS-SRTP; the keys are created only on the two computers.
  • If no direct path can be made, data is relayed through Cloudflare's TURN network, which only forwards encrypted packets.

The server's job: introductions

When you type an ID and press Connect, our server finds the computer with that ID and passes your request on. If the other side approves, the two computers exchange the connection details they need to reach each other, via the server.

Those details are not the content of your session. Screen images, sound, keystrokes and chat messages aren't part of this step, and they never reach the server later either. Once the introduction is done, the server's role in the session is over.

Finding a direct path

Most computers sit behind a router or a corporate network and aren't directly reachable from the internet. WebRTC tries the possible addresses in turn to find a path that works between the two computers. On most home and office networks a direct path exists, and data flows between the two computers with nobody in between.

A direct path also cuts latency: data doesn't have to travel to a server and back.

Encryption: DTLS and SRTP

While connecting, the two computers run a handshake called DTLS to create encryption keys between themselves. These keys never leave the computers.

  • Screen and sound are encrypted with those keys using SRTP (Secure Real-time Transport Protocol).
  • Everything else, such as mouse, keyboard and chat, travels over an encrypted data channel protected by the same handshake.

The result: data is encrypted before it leaves your computer and decrypted only on the other one. Networks along the way, internet providers and we ourselves see only unreadable packets.

When a relay is needed: Cloudflare TURN

Some strict firewalls block direct paths. In that case LemmeDesk relays the data through Cloudflare's TURN network. A TURN server is like a courier: it takes sealed envelopes from one end and hands them to the other, without being able to open them. The encryption keys still exist only on the two computers.

Against interception: the security code

End-to-end encryption raises an important question: how do you know the computer you're talking to is really the one you meant? If someone slips into the connection and pretends to be the other side, that's called a man-in-the-middle attack.

LemmeDesk counters this with three layers: a device key that belongs to each computer, memory of known computers you've connected to before, and a 6-digit security code shown on both screens at once. The code is derived from the keys the two computers actually use, so if someone is in between, the codes differ. If an identity changes unexpectedly, LemmeDesk warns you. More in the security code guide.

What our server sees, and what it doesn't

Our server sees what it needs to match the two computers: IDs, online status, the network details needed to set up the connection (for example, IP addresses) and connection durations for Free plan limits.

Our server can't see: your screen, your sound and voice calls, mouse movements and keystrokes, chat messages, or your security password. Even with unattended access the password itself is never sent; only a one-time answer proving you know it is passed along.

Encryption is one layer, not the only one

Encryption protects your data on the way. But the bigger question is often "who can connect at all?". LemmeDesk adds layers for that too:

  • Every connection needs approval from the person at the computer, and the approval window can't be clicked remotely.
  • When the sharing person moves their mouse, remote input pauses.
  • Sensitive mode hides the screen on the sharing computer itself, so the clear image never leaves it.
  • Mouse and keyboard access are granted separately.
  • Incoming-connection history shows who connected to your computer, and when.

See our security page for more.

Frequently asked questions

Can the LemmeDesk server see my screen?

No. Screen, sound, mouse, keyboard, clipboard and chat travel encrypted between the two computers, and the encryption keys never reach our server.

Is data decrypted when a relay is used?

No. The relay only passes encrypted packets from one end to the other. The keys remain on the two computers.

Which encryption is used?

WebRTC's standard encryption: keys are created on the two computers with a DTLS handshake, screen and sound travel over SRTP, and other data over an encrypted data channel.

How do I know I'm connected to the right computer?

Compare the 6-digit security code on both screens. If they match, nobody is in between.