d4em0n / nostr

Python String Obfuscator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python String Obfuscator

Example usage :

$ python obfuscate_str.py --help
usage: obfuscate_str.py [-h] [-v VAR] [-nl] str

positional arguments:
  str                string to obfuscate

optional arguments:
  -h, --help         show this help message and exit
  -v VAR, --var VAR  variable name for obfuscated string, default is '___'
  -nl, --newline     Add newline instead of ';'

$ python obfuscate_str.py "Hello world"
_=((()>[])+(()>[]));__=(((_<<_)<<_)*_);___=('c%'[::(({}>[])-(()>[]))])*((_<<_)+(_+(()>[])))%((__+(_<<_)),(__+(((_<<_)<<_)+((_*_)+(()>[])))),(__+(((_<<_)<<_)+((_<<_)+(_*_)))),(__+(((_<<_)<<_)+((_<<_)+(_*_)))),(__+(((_<<_)<<_)+((_<<_)+((_*_)+(_+(()>[])))))),((_<<_)<<_),(__+(((_<<_)<<_)+(((_<<_)*_)+((_*_)+(_+(()>[])))))),(__+(((_<<_)<<_)+((_<<_)+((_*_)+(_+(()>[])))))),(__+(((_<<_)<<_)+(((_<<_)*_)+_))),(__+(((_<<_)<<_)+((_<<_)+(_*_)))),(__+(((_<<_)<<_)+(_*_))))

$ python 
Python 2.7.13 (default, Jan 19 2017, 14:48:08)
[GCC 6.3.0 20170118] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> _=((()>[])+(()>[]));__=(((_<<_)<<_)*_);___=('c%'[::(({}>[])-(()>[]))])*((_<<_)+(_+(()>[])))%((__+(_<<_)),(__+(((_<<_)<<_)+((_*_)+(()>[])))),(__+(((_<<_)<<_)+((_<<_)+(_*_)))),(__+(((_<<_)<<_)+((_<<_)+(_*_)))),(__+(((_<<_)<<_)+((_<<_)+((_*_)+(_+(()>[])))))),((_<<_)<<_),(__+(((_<<_)<<_)+(((_<<_)*_)+((_*_)+(_+(()>[])))))),(__+(((_<<_)<<_)+((_<<_)+((_*_)+(_+(()>[])))))),(__+(((_<<_)<<_)+(((_<<_)*_)+_))),(__+(((_<<_)<<_)+((_<<_)+(_*_)))),(__+(((_<<_)<<_)+(_*_))))
>>> print ___
Hello world

About

Python String Obfuscator


Languages

Language:Python 100.0%