int-obfuscator
Obfuscate your python code into a string of integers. De-obfuscate also supported.
How it works:
Each printable character gets replaced with it's own uniqe two-character interger.
To deofbuscate, the intergers is splitted by every second character, then replaces it with it's corosponding value
WARNING: Pipe (|) is not supported for obfuscation!
Returns ValueError when pipe is used.
ValueError: Invalid character: "|"
Obfuscate:
>>> import int_obfuscate as ob
>>> ob.obfuscate("print(\"Hello, World\")")
252718232969634314212124739458242721136370
Deobfuscate:
>>> import int_obfuscate as ob
>>> ob.decode(252718232969634314212124739458242721136370)
print("Hello, World")