All Projects → chris-rands → Emojify

chris-rands / Emojify

Licence: mit
Obfuscate your python script by converting it to emoji icons

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Emojify

Javascript Code Protection Example
An example of JavaScript code protection
Stars: ✭ 76 (-23.23%)
Mutual labels:  obfuscation
Qq Wechat Emotion Parser
QQ、微信表情符号解析:字符串到图片URL
Stars: ✭ 82 (-17.17%)
Mutual labels:  emoji
Emojilib
Emoji keyword library.
Stars: ✭ 1,299 (+1212.12%)
Mutual labels:  emoji
Emoji
A simple library to add Emoji support to your Android Application
Stars: ✭ 1,201 (+1113.13%)
Mutual labels:  emoji
Datadefender
Sensitive Data Management: Data Discovery and Anonymization toolkit
Stars: ✭ 79 (-20.2%)
Mutual labels:  obfuscation
Countries
Countries - ISO 3166 (ISO3166-1, ISO3166, Digit, Alpha-2 and Alpha-3) countries codes and names (on eng and rus), ISO 4217 currency designators, ITU-T E.164 IDD calling phone codes, countries capitals, UN M.49 regions codes, ccTLD countries domains, IOC/NOC and FIFA letters codes, VERY FAST, NO maps[], NO slices[], NO init() funcs, NO external links/files/data, NO interface{}, NO specific dependencies, Databases/JSON/GOB/XML/CSV compatible, Emoji countries flags and currencies support, full support ISO-3166-1, ISO-4217, ITU-T E.164, Unicode CLDR and ccTLD standarts.
Stars: ✭ 85 (-14.14%)
Mutual labels:  emoji
Rime pure
【rime小狼毫\trime同文】手机/PC一站式配置【简约皮肤\拼音搜狗词库\原创trime同文四叶草九宫格拼音方案\四叶草拼音、小鹤双拼、极品五笔、徐码、郑码】 rime配置
Stars: ✭ 73 (-26.26%)
Mutual labels:  emoji
Emojica
A Swift framework for using custom emoji in strings.
Stars: ✭ 93 (-6.06%)
Mutual labels:  emoji
React Native Animated Emoji
Animated Floating Reactions like Facebook 👍
Stars: ✭ 82 (-17.17%)
Mutual labels:  emoji
Fnreactionsview
FNReactionsView is a customizable control (based on UIView) to give people a way to show floating emoji like facebook does during live stream, easy way.
Stars: ✭ 87 (-12.12%)
Mutual labels:  emoji
Rails emoji
Emoji for Ruby on Rails
Stars: ✭ 76 (-23.23%)
Mutual labels:  emoji
Embed Js
🌻 A lightweight plugin to embed emojis, media, maps, tweets, code and more. ✨
Stars: ✭ 1,220 (+1132.32%)
Mutual labels:  emoji
Emoji For Jekyll
A plugin for Jekyll that seamlessly enable emoji.
Stars: ✭ 86 (-13.13%)
Mutual labels:  emoji
Laravel Smartmd
🎯 A simple markdown editor compatible most markdown parse,You can choose any parse methods on server or client,like Mathematical formula、flowchart、upload image...
Stars: ✭ 76 (-23.23%)
Mutual labels:  emoji
Slack Emoji
My slack emoji collection and download script
Stars: ✭ 91 (-8.08%)
Mutual labels:  emoji
Phpumoji
PHPUnit Emoji Result Printer
Stars: ✭ 75 (-24.24%)
Mutual labels:  emoji
Emojivision
A 200 something line Swift Playground for rendering images as emojis
Stars: ✭ 84 (-15.15%)
Mutual labels:  emoji
Fontconfig Emoji
Emoji prioritization rules
Stars: ✭ 98 (-1.01%)
Mutual labels:  emoji
Aidou
chrome code review 斗图插件
Stars: ✭ 92 (-7.07%)
Mutual labels:  emoji
Emojipacks
CLI to bulk upload emojis to your Slack
Stars: ✭ 1,275 (+1187.88%)
Mutual labels:  emoji

PyPI version License: MIT Code style: black

emojify :) 😊

Description

Obfuscate your python script (or indeed any plain text file) by converting an input script to an output script that functions the same (hopefully) but encodes the code as emoji icons, currently emoticons or emojis.

Installation

pip install emojify

If installation fails with pip for some reason, you can just clone the repository, since there are no dependancies apart from python 3:

git clone https://github.com/chris-rands/emojify;
cd emojify

Usage

emojify --input input_script.py --output output_script.py

For help: emojify --help

For unit testing: test_emojify

Example

input_script.py contains:

print('hello world')
def add(n1,n2):
    return n1 + n2
print('4 + 4 = {}'.format(add(4,4)))

running emojify --input input_script.py --output output_script.py

output_script.py contains:

exec("".join(map(chr,[int("".join(str({':(': 4,
 ':)': 0,
 ':/': 7,
 ':D': 1,
 ':P': 2,
 ':S': 3,
 ':{': 8,
 ';)': 9,
 '=)': 5,
 '=/': 6}[i]) for i in x.split())) for x in
":D :D :P  :D :D :(  :D :) =)  :D :D :)  :D :D =/  :( :)  :S ;)  :D :) \
:(  :D :) :D  :D :) :{  :D :) :{  :D :D :D  :S :P  :D :D ;)  :D :D :D \
 :D :D :(  :D :) :{  :D :) :)  :S ;)  :( :D  :D :)  :D :) :)  :D :) :D\
  :D :) :P  :S :P  ;) :/  :D :) :)  :D :) :)  :( :)  :D :D :)  :( ;)  \
:( :(  :D :D :)  =) :)  :( :D  =) :{  :D :)  :S :P  :S :P  :S :P  :S :\
P  :D :D :(  :D :) :D  :D :D =/  :D :D :/  :D :D :(  :D :D :)  :S :P  \
:D :D :)  :( ;)  :S :P  :( :S  :S :P  :D :D :)  =) :)  :D :)  :D :D :P\
  :D :D :(  :D :) =)  :D :D :)  :D :D =/  :( :)  :S ;)  =) :P  :S :P  \
:( :S  :S :P  =) :P  :S :P  =/ :D  :S :P  :D :P :S  :D :P =)  :S ;)  :\
( =/  :D :) :P  :D :D :D  :D :D :(  :D :) ;)  ;) :/  :D :D =/  :( :)  \
;) :/  :D :) :)  :D :) :)  :( :)  =) :P  :( :(  =) :P  :( :D  :( :D  :\
( :D  :D :)"
.split("  ")])))

running python output_script.py outputs:

hello world
4 + 4 = 8

similarly, running emojify --input input_script.py --output output_script.py --emoji

output_script.py contains:

exec("".join(map(chr,[int("".join(str({'😀': 0, '😁': 3, '😂': 6, '😃': 1, '😄': 2, '😅': 4, '😉': 7, '😊': 8, '😛': 9, '🤣': 5}[i]) for i in x.split())) for x in
"😃 😃 😄  😃 😃 😅  😃 😀 🤣  😃 😃 😀  😃 😃 😂  😅 😀  😁 😛  😃 😀 😅  😃 😀 😃  😃 😀 😊  😃 😀 \
😊  😃 😃 😃  😁 😄  😃 😃 😛  😃 😃 😃  😃 😃 😅  😃 😀 😊  😃 😀 😀  😁 😛  😅 😃  😃 😀  😃 😀 😀\
  😃 😀 😃  😃 😀 😄  😁 😄  😛 😉  😃 😀 😀  😃 😀 😀  😅 😀  😃 😃 😀  😅 😛  😅 😅  😃 😃 😀  🤣\
 😀  😅 😃  🤣 😊  😃 😀  😁 😄  😁 😄  😁 😄  😁 😄  😃 😃 😅  😃 😀 😃  😃 😃 😂  😃 😃 😉  😃 😃\
 😅  😃 😃 😀  😁 😄  😃 😃 😀  😅 😛  😁 😄  😅 😁  😁 😄  😃 😃 😀  🤣 😀  😃 😀  😃 😃 😄  😃 😃\
 😅  😃 😀 🤣  😃 😃 😀  😃 😃 😂  😅 😀  😁 😛  🤣 😄  😁 😄  😅 😁  😁 😄  🤣 😄  😁 😄  😂 😃  \
😁 😄  😃 😄 😁  😃 😄 🤣  😁 😛  😅 😂  😃 😀 😄  😃 😃 😃  😃 😃 😅  😃 😀 😛  😛 😉  😃 😃 😂  😅\
 😀  😛 😉  😃 😀 😀  😃 😀 😀  😅 😀  🤣 😄  😅 😅  🤣 😄  😅 😃  😅 😃  😅 😃  😃 😀"
.split("  ")])))

and running output_script.py ouputs the same as above.

Disclaimer

Only tested on Python 3.6+ and on CPython. Not tested on complex scripts, so don't rely on this script to work, not guaranteed to work at all, and it is probably easy to break. One case it will fail is with non-unicode characters. Also note, if you want to securely protect your code from the eyes of others, this is NOT a good way.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].