Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryolee/xclip
A simple message sharing server.
https://github.com/ryolee/xclip
clipboard
Last synced: 24 days ago
JSON representation
A simple message sharing server.
- Host: GitHub
- URL: https://github.com/ryolee/xclip
- Owner: RyoLee
- License: bsd-3-clause
- Created: 2021-01-14T01:47:53.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-06T14:55:50.000Z (over 2 years ago)
- Last Synced: 2023-03-05T13:34:12.644Z (over 1 year ago)
- Topics: clipboard
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# XClip
Usage:
- Start on docker
```bash
docker run -p 8080:8080 -v /opt/config:/config --name xclip -d ryosetsu/xclip
```
- Add user
- by AddUser.py script ( *It's not packed in the image,use wget/curl/docker cp/volume to send it in to the container* )
```bash
AddUser.py [username] [password]
```
- by other sqlite toolcolumns:
- id: md5 hash of username
- name: username
- passowrd: md5 hash of raw password
- flag: set 1 meaning enable
- Set value
```
POST /id // md5(username)
header:
- token // md5(md5(RAW PASSWORD) + str(timestamp/10)) allow ±10s timestamp offset,so make sure that your server&client's clock are synchronized
form:
- value // message
```
- Get value
```
GET /id // md5(username)
header:
- token // md5(md5(RAW PASSWORD) + str(timestamp/10)) allow ±10s timestamp offset,so make sure that your server&client's clock are synchronized