Git Product home page Git Product logo

share-clip's Introduction

share-clip

Release

多设备剪切板共享

特性

  • 基于 Redis (可轻松支持广域网/局域网的共享, 自动发现同身份下的机器), 便携/高性能
  • 全数据加密 (加密算法采用 XSalsa20Poly1305), 支持自定义密钥
  • 支持 Linux (X11/Wayland), macOS, Windows 平台, (Android 开发中, iOS 暂无开发计划)
  • 支持文本和图片
  • 支持共享提示 (macOS 不支持), 询问框确认共享 (仅支持 Linux)

安装

二进制文件

https://github.com/cc-morning/share-clip/releases

源码编译

git clone https://github.com/cc-morning/share-clip.git
cd share-clip
cargo build --release

快速上手

1.安装 Redis

docker run --name redis -d -p 6379:6379 redis

2.运行客户端

Windows 电脑:

share-clip -u redis://:@127.0.0.1 -c cc-morning -n windows

Linux 电脑:

share-clip -u redis://:@127.0.0.1 -c cc-morning -n linux

使用自定义密钥

默认使用程序内置的公共密钥对(该方式同样安全 1, 但是可信的 redis 是前提), 若在公共或不可信的 redis 中建议使用自定义密钥

1.构建密钥对

share-clip --gen-key

该命令会在当前目录下生成 secret_key 和 public_key 密钥对文件(同 code 下的机器使用一对相同的密钥, 需自行将该密钥对文件分发至不同的设备中)

2.使用自定义的密钥对运行

share-clip -u redis://:@127.0.0.1 -c cc-morning -n linux --secret-key /xxx/xxx/secret_key --public-key /xxx/xxx/public_key

Footnotes

  1. https://datatracker.ietf.org/doc/html/rfc8439

share-clip's People

Contributors

morn-0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

share-clip's Issues

Unknown error while interacting with the clipboard:

急需这个哈哈

RUST_BACKTRACE=1 ./target/release/share-clip -u redis://:@docker -c cc-morning -n mac --secret-key ./secret_key --public-key ./public_key
thread 'main' panicked at 'Failed to create clipboard!: Unknown { .. } - "Unknown error while interacting with the clipboard: Display parsing error"', src/clipboard.rs:42:37
stack backtrace:
0: rust_begin_unwind
at /rustc/2e35f954ada0f0c777844dc4fa66684efe90a035/library/std/src/panicking.rs:584:5
1: core::panicking::panic_fmt
at /rustc/2e35f954ada0f0c777844dc4fa66684efe90a035/library/core/src/panicking.rs:142:14
2: core::result::unwrap_failed
at /rustc/2e35f954ada0f0c777844dc4fa66684efe90a035/library/core/src/result.rs:1785:5
3: share_clip::main::{{closure}}
4: share_clip::main
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.
[1] 2284700 abort (core dumped) RUST_BACKTRACE=1 ./target/release/share-clip -u redis://:@docker -c cc-mornin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.