This fork throws out all the pretty pictures below for a batchable CLI interface. Just run:
python Python_Text_Obfuscator_CLI.py inputFile outputFile
You can also import it into other code, and then call
Python_Text_Obfuscator_CLI.doIt(inputFile, outputFile)
in order to perform a translation. To edit settings, simply edit config.py.
Takes a string and puts it through different languages in Google Translate a requested amount of times, returning nonsense.
python3.10
aiohttp
regex
pandas
python3.10 "Python Text Obfuscator Main.py"
Translations are retrieved from a front-end to Google Translate called Lingva, which removes the issue with being blocked for doing too many requests.
Translations are done in an asynchronous function using aiohttp instead of a process pool, which is optimal for large bulk translations.
Text is split by length before being passed into the obfuscate function.
Faster as less requests are made.
Different languages for each piece.
Tabs not preserved.
Text is split by length inside the obfuscate function.
Faster as less requests are made.
Same languages for each piece.
Tabs not preserved.
Text is split by newlines and tabs.
Slower as more requests are made.
Every single line is translated with different languages.
Tabs preserved.
Repeat mode obfuscates the original text each time, adding the result in each new column.
Continue mode obfuscates the results from each subsequent obfuscation, adding the result in each new column.