mirror of
https://github.com/fumiama/base16384.git
synced 2026-06-05 02:00:31 +08:00
037847a1fed91abb5ad0c4261a666e4dbf91327d
base16384
Encode binary file to printable utf16be, and vise versa.
Description 说明
Use 16384 Chinene characters (from \u4E00 to \u8DFF) as the "alphabet", just like what base64 did.
使用16384个汉字作为字符表,就像base64用64个字符作为字符表一样。
If length of the data has a remainder after moduled by 7, we will use \u3Dxx to log it with xx ranging from 01 to 06.
另外,使用\u3Dxx附加在末尾以表示编码时数据不满7位的个数,其范围在01~06。
Benefits 优点
Save more space and since the code 0x0000 is encoded to "一", finding zero space seems to be easier.
相较base64节省更多空间,更容易发现二进制文件的规律。
Usage 使用说明
Clone this repo first.
首先克隆该仓库。
git clone https://github.com/fumiama/base16384.git
cd base16384
Then use cmake to build.
然后使用cmake进行构建。
mkdir build
cd build
cmake ..
make
make install
Now you can encode/decode a file by commands below.
现在可以使用命令对文件进行编码/解码。
Usage: -[e|d] <inputfile> <outputfile>
-e encode
-d decode
Description
Encode binary files to printable utf16be.
aglorithmbase16384base64base64-decodingbase64-encodingbitwise-operationscc-libc-librarydecoderencoderencoder-decoderutf16-encodingutf16be
Readme
GPL-3.0
524 KiB
Languages
C
94.4%
Roff
3%
CMake
2.6%