{"id":13766286,"url":"https://github.com/chris-rands/emojify","last_synced_at":"2025-05-10T21:33:19.662Z","repository":{"id":41211665,"uuid":"84426901","full_name":"chris-rands/emojify","owner":"chris-rands","description":"Obfuscate your python script by converting it to emoji icons","archived":false,"fork":false,"pushed_at":"2020-03-22T11:31:11.000Z","size":43,"stargazers_count":138,"open_issues_count":3,"forks_count":21,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-09T04:13:43.293Z","etag":null,"topics":["emoji","emojify","emoticon","emoticons","obfuscation","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chris-rands.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-09T10:03:05.000Z","updated_at":"2025-02-25T14:59:06.000Z","dependencies_parsed_at":"2022-09-11T05:01:19.746Z","dependency_job_id":null,"html_url":"https://github.com/chris-rands/emojify","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chris-rands%2Femojify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chris-rands%2Femojify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chris-rands%2Femojify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chris-rands%2Femojify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chris-rands","download_url":"https://codeload.github.com/chris-rands/emojify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253486335,"owners_count":21916136,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["emoji","emojify","emoticon","emoticons","obfuscation","python"],"created_at":"2024-08-03T16:00:53.458Z","updated_at":"2025-05-10T21:33:19.395Z","avatar_url":"https://github.com/chris-rands.png","language":"Python","funding_links":[],"categories":["Projects"],"sub_categories":["Python"],"readme":"[![PyPI version](https://badge.fury.io/py/emojify.svg)](https://badge.fury.io/py/emojify)\n![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n# emojify :) 😊\n\n**Description**\n\nObfuscate 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.\n\n**Installation**\n\n`pip install emojify`\n\nIf installation fails with `pip` for some reason, you can just clone the repository, since there are no dependancies apart from python 3:\n```\ngit clone https://github.com/chris-rands/emojify;\ncd emojify\n```\n\n**Usage**\n\n`emojify --input input_script.py --output output_script.py`\n\nFor help:\n`emojify --help`\n\nFor unit testing:\n`test_emojify`\n\n**Example**\n\n`input_script.py` contains:\n\n    print('hello world')\n    def add(n1,n2):\n        return n1 + n2\n    print('4 + 4 = {}'.format(add(4,4)))\n\nrunning `emojify --input input_script.py --output output_script.py`\n\n`output_script.py` contains:\n\n    exec(\"\".join(map(chr,[int(\"\".join(str({':(': 4,\n     ':)': 0,\n     ':/': 7,\n     ':D': 1,\n     ':P': 2,\n     ':S': 3,\n     ':{': 8,\n     ';)': 9,\n     '=)': 5,\n     '=/': 6}[i]) for i in x.split())) for x in\n    \":D :D :P  :D :D :(  :D :) =)  :D :D :)  :D :D =/  :( :)  :S ;)  :D :) \\\n    :(  :D :) :D  :D :) :{  :D :) :{  :D :D :D  :S :P  :D :D ;)  :D :D :D \\\n     :D :D :(  :D :) :{  :D :) :)  :S ;)  :( :D  :D :)  :D :) :)  :D :) :D\\\n      :D :) :P  :S :P  ;) :/  :D :) :)  :D :) :)  :( :)  :D :D :)  :( ;)  \\\n    :( :(  :D :D :)  =) :)  :( :D  =) :{  :D :)  :S :P  :S :P  :S :P  :S :\\\n    P  :D :D :(  :D :) :D  :D :D =/  :D :D :/  :D :D :(  :D :D :)  :S :P  \\\n    :D :D :)  :( ;)  :S :P  :( :S  :S :P  :D :D :)  =) :)  :D :)  :D :D :P\\\n      :D :D :(  :D :) =)  :D :D :)  :D :D =/  :( :)  :S ;)  =) :P  :S :P  \\\n    :( :S  :S :P  =) :P  :S :P  =/ :D  :S :P  :D :P :S  :D :P =)  :S ;)  :\\\n    ( =/  :D :) :P  :D :D :D  :D :D :(  :D :) ;)  ;) :/  :D :D =/  :( :)  \\\n    ;) :/  :D :) :)  :D :) :)  :( :)  =) :P  :( :(  =) :P  :( :D  :( :D  :\\\n    ( :D  :D :)\"\n    .split(\"  \")])))\n\nrunning `python output_script.py` outputs:\n\n    hello world\n    4 + 4 = 8\n\nsimilarly, running `emojify --input input_script.py --output output_script.py --emoji`\n\n`output_script.py` contains:\n\n    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\n    \"😃 😃 😄  😃 😃 😅  😃 😀 🤣  😃 😃 😀  😃 😃 😂  😅 😀  😁 😛  😃 😀 😅  😃 😀 😃  😃 😀 😊  😃 😀 \\\n    😊  😃 😃 😃  😁 😄  😃 😃 😛  😃 😃 😃  😃 😃 😅  😃 😀 😊  😃 😀 😀  😁 😛  😅 😃  😃 😀  😃 😀 😀\\\n      😃 😀 😃  😃 😀 😄  😁 😄  😛 😉  😃 😀 😀  😃 😀 😀  😅 😀  😃 😃 😀  😅 😛  😅 😅  😃 😃 😀  🤣\\\n     😀  😅 😃  🤣 😊  😃 😀  😁 😄  😁 😄  😁 😄  😁 😄  😃 😃 😅  😃 😀 😃  😃 😃 😂  😃 😃 😉  😃 😃\\\n     😅  😃 😃 😀  😁 😄  😃 😃 😀  😅 😛  😁 😄  😅 😁  😁 😄  😃 😃 😀  🤣 😀  😃 😀  😃 😃 😄  😃 😃\\\n     😅  😃 😀 🤣  😃 😃 😀  😃 😃 😂  😅 😀  😁 😛  🤣 😄  😁 😄  😅 😁  😁 😄  🤣 😄  😁 😄  😂 😃  \\\n    😁 😄  😃 😄 😁  😃 😄 🤣  😁 😛  😅 😂  😃 😀 😄  😃 😃 😃  😃 😃 😅  😃 😀 😛  😛 😉  😃 😃 😂  😅\\\n     😀  😛 😉  😃 😀 😀  😃 😀 😀  😅 😀  🤣 😄  😅 😅  🤣 😄  😅 😃  😅 😃  😅 😃  😃 😀\"\n    .split(\"  \")])))\n\nand running `output_script.py` ouputs the same as above.\n\n**Disclaimer**\n\nOnly 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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchris-rands%2Femojify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchris-rands%2Femojify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchris-rands%2Femojify/lists"}