This is a super-simple program that implements a base256 encoding using emoji. It will encode anything passed to it on standard input, and write the output to standard output. The current emoji table is as follows:
๐๐๐โโ๐๐๐๐๐๐๐โ๐๐๐
๐ฃ๐คโโโโโโโโ๐๐ฏ๐๐๐โค
๐ธ๐ท๐น๐ป๐๐โฝโพ๐๐๐น๐
๐โ๐ช๐ง
๐ฉโฐ๐๐ง๐๐ฆ๐๐๐๐๐๐๐ข๐๐๐
๐๐๐ฆ๐๐ซ๐ฌ๐๐ท๐ธ๐๐๐๐๐ฃ๐จ๐ฉ
๐ช๐ซ๐ญ๐๐๐๐๐ฎ๐ญ๐ง๐๐๐ฟ๐๐๐
๐๐๐๐๐๐๐๐๐๐
๐๐ถ๐ฝ๐ท๐บโ
๐ธ๐พ๐๐๐
๐โโโโโฐโ๐๐๐๐
๐ป๐๐ฟ๐ฝโ๐๐โโญ๐ต๐น๐ป๐๐๐ฑ๐ด
๐๐
๐ฉ๐ค๐ฅ๐จ๐ฒโ ๐ท๐ฐ๐ณ๐ฒโ โฃโฅโฆ
๐๐๐๐ข๐ซ๐ฒ๐๐โ๐ฆ๐พ๐ฟ๐ก๐๐
๐
๐๐๐โโ๐๐๐๐ช๐ซ๐ง๐จ๐ด๐ฅ๐ฃ๐ฌ
๐ ๐๐๐๐๐๐๐๐๐๐ฉ๐ฝ๐ฟ๐๐๐
โช๐๐๐๐๐๐ฌ๐ฏโโถโฌ
โฌโฌโโโ
โโฉโช๐โฉโชโซโฌโธโจโฎโขโฏโกโโ
๐ข๐ก๐ช๐ฉ๐ฌ๐ฎ๐ฐ๐ฑ๐ต๐บ๐ฟ๐๐ญ๐
๐๐ฏ
$ echo 'my string' | cargo run
๐ทโ๐ธ๐๐
๐๐
๐บ๐๐
Some possible real-world uses of this could include:
$ ssh-keygen -E sha256 -l -f ~/.ssh/id_main_rsa | awk -F'[ :]' '{print $3}' | base64 -d | emoji256
โญ๐ฟ๐ช๐โโโ๐๐๐โช๐ทโ๐ฃ๐๐๐๐ช๐ธ๐ชโ๐ปโ๐ฎ๐ฝ๐ฅ๐ณ๐ฝโชโฐ๐ซโ
$ sha256sum Cargo.toml | cut -d' ' -f1 | xxd -r -p | emoji256
๐ค๐๐ขโฉ๐ธ๐โฃโโ๐โฌ
๐ธ๐ฏโฐ๐โ๐๐
๐ฐโ๐๐๐ต๐โค๐๐ฎ๐โช๐๐ง๐
$ gpg --list-keys --with-colons pacman@localhost | grep '^fpr' | cut -d':' -f10 | xxd -r -p | emoji256
๐ญ๐ฆโ๐โ๐๐ฃโโ๐๐
๐๐ด๐โ๐ฝ๐ฃ๐โฆ๐