How it works

Under the hood

The technical story for the curious: how your devices pair, how every byte is encrypted, and how ClipSync keeps the network, not the app, as the only limit on speed.

The shape of it

Pairing (one time)

  1. The Mac shows a QR code. It holds the Mac's id and name and a one-time 256-bit pairing key, plus optionally the Mac's address for networks where discovery is blocked. The code is valid for 2 minutes, for one use.
  2. The phone scans it and connects in pairing mode, sending a pairing request encrypted with that one-time key.
  3. The Mac asks you: "Pair with “Pixel 8”?"
  4. On Allow, the Mac generates a fresh 256-bit device key for this pair and sends it over the encrypted channel. The Mac stores it in the macOS Keychain; the phone stores it wrapped by the Android Keystore. The pairing key is discarded.
  5. From then on the phone connects as itself, and the Mac refuses any device it doesn't know.

Encryption

Every frame is encrypted with AES-256-GCM using the pair's device key. That covers both control messages and file data.

nonce · 96 bitciphertexttag · 128 bit

Every feature is switchable

Clipboard sync

File transfer

  1. Offer: the sender announces the name, size and type.
  2. Accept: the receiver accepts automatically or after asking you, and opens a temporary file.
  3. Stream: the data flows as 64 KB encrypted chunks with strictly increasing sequence numbers.
  4. Done: the sender sends the SHA-256 of the whole file. The receiver checks the size and hash, syncs to disk, and renames to the final name, never overwriting an existing file. A mismatch means the file is discarded and you're told.
  5. Either side can cancel at any time. A dropped connection cleans up the partial file, and the phone offers the file again after reconnecting.

Why it's fast

Fast transfer (direct link for big files)

The problem: through a home router, each byte crosses the air twice: phone → router → Mac. On a 2.4 GHz network that can mean only a few MB/s.

Why not AirDrop's method: AirDrop uses Apple's AWDL radio protocol, which Android can't speak, and macOS doesn't offer Wi-Fi Direct to apps.

ClipSync's answer, for files of 100 MB or more:

  1. The phone starts a Wi-Fi Direct group: a temporary private WPA2 network with a random name and password, new each session. It tries 5 GHz first, then specific 5 GHz channels, then any band. If Wi-Fi Direct can't start, it falls back to Android's local-only hotspot.
  2. The phone sends the credentials to the Mac over the existing encrypted link.
  3. The Mac joins it as a normal Wi-Fi client and announces itself with an encrypted beacon, sealed with the pair's key, so only your paired phone can read or trust it.
  4. The phone connects to the Mac over the direct link, and transfers run there.
  5. When both sides are idle, the phone closes the network. The Mac forgets it and macOS reconnects to your usual Wi-Fi.

Safety nets on the Mac

If anything prevents a direct link, the transfer continues over your normal Wi-Fi and a notification explains why in plain words. The trade-off: a Mac has one Wi-Fi radio, so its internet pauses for the duration. That's shown in a notification, and the feature can be turned off.

The Mac joins networks with the system's own tools, which need no Location permission. That matters because recent macOS hides Wi-Fi network names from apps without it.

Discovery and reconnection

Low power by design

Tech stack

MacAndroid
LanguageRust core with no UI dependency, Tauri 2 shellKotlin, Jetpack Compose (Material You)
Networkingtokio, tokio-tungstenite, mdns-sdWebSocket client, Android NSD
Cryptoring (AES-256-GCM, SHA-256)AES-256-GCM, key wrapped by Android Keystore
Key storagemacOS KeychainAndroid Keystore, excluded from cloud backup
RequiresmacOS 13 Ventura or laterAndroid 10 or newer (Fast transfer: 13+)

← Back to ClipSync  ·  Privacy policy