2 releases
0.1.1 | Mar 14, 2024 |
---|---|
0.1.0 | Mar 14, 2024 |
#762 in Authentication
9KB
83 lines
blindcopy
Copy data to clipboard without it appearing in clipboard history or being synced, by setting platform-specific options.
Currently, only copying text is supported, for the initial intended usage is passwords. Support for more data types may be added.
For reading (and general writing), use another library.
Supported platforms and their options are:
- macOS, setting
[NSPasteboard setString: forType:]
toorg.nspasteboard.ConcealedType
- Windows, writing something of format
ExcludeClipboardContentFromMonitorProcessing
after the actual data - KDE (Klipper) on Wayland, copying a source of MIME type
x-kde-passwordManagerHint
with valuesecret
; there's no single source of truth for this, but can be searched at multiple places
I hope to also add support for:
- The
CLIPBOARD_STATE
protocol from wl-clipboard (proposal and man page of wl-clipboard) - Other, more general protocols on Linux
Instructions and code to support more modern platforms and data types are welcome.
Thanks to:
- KeePassXC, for the initial inspiration
- The arboard and wden crates, for directions on Windows handling
- The cacao crate, for macOS handling
Dependencies
~0–9MB
~98K SLoC