Repository navigation
Privacy and Security
Duck Share does not collect, store or share any personal data. There are no accounts, no analytics, no ads and no servers run by the project. The full policy is at https://n1th1n-19.github.io/duck-share/privacy.html (source: site/privacy.html).
Files and messages go directly from your device to the device you send them to, over your local network. They are never uploaded to the internet. Received files are saved where you choose (by default Downloads or the gallery). The history of received files stays on your device and can be deleted in the app.
Duck Share does not contact any server on its own. It only opens a website when you tap a link in the app, such as the privacy policy or the source code.
To be found and to receive files, Duck Share shares these details with devices on the same network, and with a phone you tap:
- the device name and device type set in the app,
- the device's local network addresses and the app's port,
- a fingerprint of the app's security certificate.
| Part | How it works |
|---|---|
| Transport | REST API over HTTPS (TLS) |
| Certificates | Each device generates its own TLS certificate on the fly |
| Identity | The SHA-256 fingerprint of the certificate |
| Client certificates | Required between devices (optional only while the browser web pages are served) |
| Encryption setting | Can be turned off in Settings → Network (Advanced). With it off, transfers are not encrypted. |
A request whose claimed fingerprint does not match its certificate is ignored.
The NFC touch exchanges only the details listed above (name, addresses, port, fingerprint). The sender then connects over HTTPS pinned to the fingerprint it received by physical contact, which makes the connection harder to intercept than LAN discovery. Only private, link-local and CGNAT addresses are dialed.
Safeguards on the receiving phone:
- A tap on a locked phone never starts the app in the background and is never auto-accepted.
- Auto-accept after a tap applies once, within 30 seconds, and only to the device whose certificate matches the tapped phone.
Trust is granted only from the TLS certificate fingerprint the device connected with, never from the fingerprint it claims in its request. Trusted devices skip the prompt and the receive PIN. See Trusted and blocked devices.
Settings → Receive → Require PIN makes senders enter a PIN before they can send. Trusted devices skip it.
| Permission | Why |
|---|---|
| Local network, Internet | Find nearby devices and transfer files over your local network |
| NFC | Tap to share |
| Photos and videos, storage | Pick files to send and save files you receive. Only the files you choose are read. |
| Media location | Keep the location data already inside your photos when you send them. Duck Share does not read your location. |
| Notifications, foreground service | Show transfer progress and keep a transfer running when the screen is off |
| Install apps | Open APK files you received, only when you choose to install one |
| Vibration | Confirm a tap and a finished transfer |
| Quick Settings tile | The "Tap to share" on/off switch |
Report security issues privately via GitHub security advisories, not in a public issue.
Duck Share · Issues · Apache License 2.0 · Based on LocalSend by Tien Do Nam and contributors