basehan

Crates.iobasehan
lib.rsbasehan
version0.9.0
sourcesrc
created_at2022-10-20 06:02:46.691411
updated_at2024-06-20 06:24:19.495456
descriptionA data encryption method using Chinese characters. Kind of like base64.
homepagehttps://github.com/MerlynAllen/basehan
repositoryhttps://github.com/MerlynAllen/basehan
max_upload_size
id692196
size42,992
Merlyn (MerlynAllen)

documentation

README

Base-CJK

Use CJK characters to encode to binary data to text.

CJK chracter ranges:

CJK Unified Ideographs 4E00-9FFF Common
CJK Unified Ideographs Extension A 3400-4DBF Rare
This utility converts every 13 bits to a Unicode code point which lies in the range of `[4E00, 6E00)`. In addition, 8E00 is also used as a functional character to show whether the ending byte is split to 2 code points or not. In v1, in order to support streaming mode, we make `[6E00, 7E00)` in use, which has 2^12 code points, to indicate the end of file without introducing control characters with no information, which requires the decoder to peek 1 character forward while somehow impossible in streaming.
Commit count: 22

cargo fmt