本周末的小项目:https://github.com/hurui200320/utf8-ctc
Side project for this weekend: https://github.com/hurui200320/utf8-ctc
使用中文电报码编码文字,并使用UTF-8作为回退,同时还有加密功能(使用置换密码)。
Encode text using Chinese telegraph code, but with UTF-8 as a fallback, also with encryption (Transposition Cipher).
这个项目是和朋友聊到寄信的时候催生的。明信片8毛钱,平信1块2,我就不想多花4毛钱。于是便有了这个项目。你所需要的只是抄写并敲打一系列数字。
This project was built when my friend talked about sending postcards. The postcard costs 0.8CNY to send (proper mail starts with 1.2CNY, in contract, a big mac costs 22 CNY). Anyway, we don't want to spend the extra 0.4 CNY, but we also want privacy using post-services. So I came up with a solution to encode and possibly encrypt the text. All you need is to write and type a bunch of numbers.
完全不需要Base64或者Base58。从我过去的经验来看,这些编码不好写,也不好敲。
No base64 or base58. From my previous experience, they are terrible to write and type.
如果你想了解更多,我还有一篇博客来详细阐述我的思路(不过GitHub的readme应该就足够了):https://skyblond.info/archives/1062.html
If you want to know more, I also have a blog to descibe my idea (which I think GitHub's readme is good enough). Anyway, if you want to read, here is the google translated version: https://skyblond-info.translate.goog/archives/1062.html?_x_tr_sl=auto&_x_tr_tl=en-US&_x_tr_hl=zh-CN&_x_tr_pto=wapp