Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/umrninside/boshmessenger
这篇文章读起来不通顺,是因为它承载着信息。
https://github.com/umrninside/boshmessenger
Last synced: about 2 months ago
JSON representation
这篇文章读起来不通顺,是因为它承载着信息。
- Host: GitHub
- URL: https://github.com/umrninside/boshmessenger
- Owner: UMRnInside
- License: wtfpl
- Created: 2020-01-13T02:08:22.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-03T15:41:33.000Z (over 4 years ago)
- Last Synced: 2024-10-12T02:08:00.656Z (2 months ago)
- Language: JavaScript
- Homepage: https://umrninside.github.io/BoshMessenger/
- Size: 63.5 KB
- Stars: 19
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BoshMessenger
废话信使,能够用废话承载二进制数据。
感谢 [menzi11/BullshitGenerator](https://github.com/menzi11/BullshitGenerator)## Usage
`boshencode.py` 和 `boshdecode.py` 都从标准输入 `stdin` 读取数据、从标准输出 `stdout` 输出结果。```
# 原文件: original.bin# 编码
python3 boshencode.py < original.bin > bosh.txt# 解码
python3 boshdecode.py < bosh.txt > decoded.bin
```## Note
目前,废话信使 _BoshMessenger_ 一次只能够传递 32767 字节的信息。注意,废话信使的放大倍数(编码后文件大小 / 原始文件大小)很大。
| 编码 | 放大倍数 |
| -------- | ------- |
| UTF-8 | 100 |
| GBK | 65 |
这可是真的废话