base256

:cyclone: binary-to-emoji encoding.

Github星跟蹤圖

base256

Travis
Coverage Status
Release
Go Report Card
License
GoDoc

:cyclone: Base256 is a binary-to-emoji encoding scheme implementation.

Install

$ go get ekyu.moe/base256

Example

package main

import (
    "fmt"

    "ekyu.moe/base256"
)

func main() {
    fmt.Println(base256.EncodeToString([]byte("Hello, 世界")))   //=> ?????????????
    fmt.Println(string(base256.DecodeString("?????????????"))) //=> Hello, 世界
}

Check godoc for further documents.

A CLI utility is also available with go get ekyu.moe/base256/cmd/base256.

Specification

base256 encoding uses two tables to transform a single byte into a single emoji. The tables can be found in table.go. In this implementation, these tables are utilized circularly when encoding, however such rule does not apply to decoding.

To achieve the best compatibility, all the emojis are picked from the classic version and each of them is guaranteed to be 4 bytes long in UTF-8.

License

BSD-3-clause

主要指標

概覽
名稱與所有者Equim-chan/base256
主編程語言Go
編程語言Go (語言數: 1)
平台
許可證BSD 3-Clause "New" or "Revised" License
所有者活动
創建於2017-12-02 23:15:53
推送於2020-02-02 11:23:18
最后一次提交2020-02-02 19:22:39
發布數2
最新版本名稱0.1.1 (發布於 2017-12-16 14:09:10)
第一版名稱v0.1.0 (發布於 2017-12-03 09:31:48)
用户参与
星數34
關注者數2
派生數1
提交數13
已啟用問題?
問題數0
打開的問題數0
拉請求數0
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?