From ed54eb6f449fe38a9c73eda7e119dd722206a816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Thu, 18 May 2023 14:10:47 +0800 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 9745cc8..2d3524f 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,22 @@ base16384 [-edt] [inputfile] [outputfile] ``` ## Examples 用例 +1. Encode simple text + +```bash +echo -n "1234567" | base16384 -e - - | iconv -f utf-16be -t utf-8 +婌焳廔萷 +``` + +3. Decode simple text + +```bash +echo -n "婌焳廔萷" | iconv -f utf-8 -t utf-16be | ./base16384 -d - - +1234567 +``` + +3. Encode file + The text below is the encoding of the base16384 itself on MacOS 12.6 arm64. It is clear to see the strucutre of the binary file. 下面的文本是使用base16384程序在 MacOS 12.6 arm64 版本下编码自身的结果。可见文件结构十分清晰。