What's it do?
>>> import emojencode, textwrap
>>> data = emojencode.e64encode(
... b'Man is distinguished, not only by his reason, but by '
... b'this singular passion from other animals, which is a '
... b'lust of the mind, that by a perseverance of delight in '
... b'the continued and indefatigable generation of knowledge, '
... b'exceeds the short vehemence of any carnal pleasure.')
>>> print('\n'.join(textwrap.wrap(data, 40)))
๐๐๐
๐ฎ๐๐๐ฅ๐ณ๐๐๐๐ฉ๐๐ท๐๐ฉ๐๐ฆ๐๐ต๐๐๐๐จ๐๐๐๐ฌ๐๐๐น๐ฏ๐๐๐๐ฏ๐๐ฆ๐ฑ๐น
๐๐๐๐น๐๐๐ก๐ฉ๐๐ฒ๐๐ฒ๐๐๐
๐ณ๐๐ถ๐ธ๐ฌ๐๐๐๐ต๐๐๐๐ข๐๐๐๐ด๐๐๐ฅ๐ณ๐๐๐๐ฉ
๐๐ฆ๐๐ต๐๐๐
๐ฒ๐๐๐๐ก๐๐ท๐๐ฉ๐๐ถ๐ธ๐ ๐๐ง๐๐ฏ๐๐๐๐ฏ๐๐๐ก๐ฅ๐๐ข๐๐ก๐๐ฆ๐ฅ๐ญ
๐๐๐ฑ๐ณ๐๐๐๐ท๐๐๐ฅ๐ฃ๐๐๐๐ฉ๐๐ฒ๐๐ก๐๐๐ฑ๐ต๐๐ท๐๐ ๐๐ถ๐๐ ๐๐๐ก๐ฅ๐๐๐ต๐ฉ
๐๐ฆ๐๐ฌ๐๐๐๐จ๐๐๐๐ ๐๐ง๐ค๐ ๐๐๐๐ฐ๐๐๐๐ณ๐๐๐๐ฅ๐๐ฆ๐
๐ฎ๐๐ถ๐๐ ๐๐ถ๐๐
๐๐๐๐ฌ๐๐๐๐จ๐๐๐๐ฉ๐๐ข๐๐ด๐๐๐๐ ๐๐ถ๐ฝ๐ฎ๐๐๐ฅ๐ฎ๐๐๐๐ค๐๐๐
๐ฎ๐๐๐๐ฉ
๐๐ฆ๐๐ฅ๐๐ฆ๐
๐ด๐๐๐๐ก๐๐ฆ๐ฑ๐ฅ๐๐๐๐ฅ๐๐ฆ๐๐ฒ๐๐๐๐ฉ๐๐ถ๐ธ๐ ๐๐ถ๐๐ ๐๐ถ๐น๐ฏ
๐๐ถ๐ฑ๐ฅ๐๐๐๐ฅ๐๐๐๐ฅ๐๐๐๐ฅ๐๐๐๐ณ๐๐๐๐จ๐๐๐๐ณ๐๐๐ฝ๐ฒ๐๐๐๐ถ๐๐๐ก๐ฅ
๐๐๐๐ฎ๐๐ถ๐๐ ๐๐ถ๐๐ ๐๐๐น๐น๐๐๐๐ก๐๐ฆ๐น๐ก๐๐๐๐ฐ๐๐๐๐ก๐๐ท๐๐ฒ๐๐๐ธ๐ฉ
Also this:
>>> text = emojencode.e64decode('''
... ๐๐๐
๐ฎ๐๐๐ฅ๐ณ๐๐๐๐ฉ๐๐ท๐๐ฉ๐๐ฆ๐๐ต๐๐๐๐จ๐๐๐๐ฌ๐๐๐น๐ฏ
... ๐๐๐๐ฏ๐๐ฆ๐ฑ๐น๐๐๐๐น๐๐๐ก๐ฉ๐๐ฒ๐๐ฒ๐๐๐
๐ณ๐๐ถ๐ธ๐ฌ๐๐๐๐ต
... ๐๐๐๐ข๐๐๐๐ด๐๐๐ฅ๐ณ๐๐๐๐ฉ๐๐ฆ๐๐ต๐๐๐
๐ฒ๐๐๐๐ก๐๐ท๐๐ฉ
... ๐๐ถ๐ธ๐ ๐๐ง๐๐ฏ๐๐๐๐ฏ๐๐๐ก๐ฅ๐๐ข๐๐ก๐๐ฆ๐ฅ๐ญ๐๐๐ฑ๐ณ๐๐๐๐ท
... ๐๐๐ฅ๐ฃ๐๐๐๐ฉ๐๐ฒ๐๐ก๐๐๐ฑ๐ต๐๐ท๐๐ ๐๐ถ๐๐ ๐๐๐ก๐ฅ๐๐๐ต๐ฉ
... ๐๐ฆ๐๐ฌ๐๐๐๐จ๐๐๐๐ ๐๐ง๐ค๐ ๐๐๐๐ฐ๐๐๐๐ณ๐๐๐๐ฅ๐๐ฆ๐
๐ฎ
... ๐๐ถ๐๐ ๐๐ถ๐๐ ๐๐๐๐ฌ๐๐๐๐จ๐๐๐๐ฉ๐๐ข๐๐ด๐๐๐๐ ๐๐ถ๐ฝ๐ฎ
... ๐๐๐ฅ๐ฎ๐๐๐๐ค๐๐๐
๐ฎ๐๐๐๐ฉ๐๐ฆ๐๐ฅ๐๐ฆ๐
๐ด๐๐๐๐ก๐๐ฆ๐ฑ๐ฅ
... ๐๐๐๐ฅ๐๐ฆ๐๐ฒ๐๐๐๐ฉ๐๐ถ๐ธ๐ ๐๐ถ๐๐ ๐๐ถ๐น๐ฏ๐๐ถ๐ฑ๐ฅ๐๐๐๐ฅ
... ๐๐๐๐ฅ๐๐๐๐ฅ๐๐๐๐ณ๐๐๐๐จ๐๐๐๐ณ๐๐๐ฝ๐ฒ๐๐๐๐ถ๐๐๐ก๐ฅ
... ๐๐๐๐ฎ๐๐ถ๐๐ ๐๐ถ๐๐ ๐๐๐น๐น๐๐๐๐ก๐๐ฆ๐น๐ก๐๐๐๐ฐ๐๐๐๐ก
... ๐๐ท๐๐ฒ๐๐๐ธ๐ฉ
... ''')
>>> textwrap.shorten(text.decode('utf-8'), width=55, placeholder='...')
'Man is distinguished, not only by his reason, but by...'
pip3 install emojencode
Requires Python 3.
emojencode [<data>]
emojdecode [<data>]
If data
is not provided, reads from stdin.
When decoding, any unrecognized characters are ignored.
Example usage:
$ emojencode 'Hello, ๐!' > message.e64
$ cat message.e64
๐๐๐๐ฌ๐๐๐ผ๐ฌ๐๐๐๐๐ฃ๐๐ธ๐ก
$ cat message.e64 | emojdecode
Hello, ๐!
Advanced usage:
$ emojdecode '
> cant belive how #blessed i am with such an
> awesome life โค๐๐๐๐ญ๐๐๐๐ฏ๐๐๐
๐ฌ๐๐ถ๐น๐ฅ
> #weareyoung #lol #yolo
> '
i'm so alone
emojdecode "$(curl -fsSL https://raw.githubusercontent.com/doctaphred/emojencode/master/LICENSE)"
- more emoji
- gzip + ascii85 support
- cowsay integration