What it is
Handoff is the plumbing we use when a web app needs data on more than one device, or needs to share something with a friend. The app packs its data, the browser compresses and encrypts it, and it goes into a mailbox that lasts 42 hours. You get a code made of ordinary words, like "the royal robin doth find the chilly secret", plus a QR code and a link. Type the words on another device and the data arrives. The words themselves hold the key, so the server can't read anything it stores.
Try it
The demo is a simple list. Add a few items, then press "Sync with my other device". Open the demo in a second browser or a private window, enter the spoken code, and your list appears. "Share this list" makes a read-only copy for someone else. This is the real, live service, not a mock. Note that codes expire after 42 hours.
How it works
- An app hands its data to Handoff.
- The browser compresses and encrypts it, then uploads it to a mailbox.
- You get a spoken code, a QR code and a link.
- On the other device you type the code.
- A sync code lets both devices keep writing for 42 hours; a share code is read-only.
What exists today
- A client library with a built-in dialog (QR, spoken line, copy and send)
- Two word packs with different flavors; any pack's code opens anywhere
- Merge helpers so two devices can edit the same list safely, including deletions
- A "say" page that sends a typed code to the right app
- Server limits on box size, reads, writes and traffic, plus an allow-list of apps
- In use today by Panview and ZapMinder
- A link-only mode that skips the server entirely for small data
What isn't there yet
- It is not a backup: boxes vanish after 42 hours
- Codes are only safe because of the short lifetime and rate limits
- It only works from approved sites, so local testing has to use the live server
Under the hood
- JavaScript modules bundled into one 51 KB file that apps import
- AES-GCM 256 encryption in the browser; the code derives the address, key and write permission
- A single PHP file on the server stores encrypted blobs, capped at 64 KB each
