Code Monkey home page Code Monkey logo

pythontextobfuscator-cli's Introduction

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.

PythonTextObfuscator

Takes a string and puts it through different languages in Google Translate a requested amount of times, returning nonsense. Example Example Example

Requirements:

python3.10

aiohttp

regex

pandas

Usage:

python3.10 "Python Text Obfuscator Main.py"

Changes in v0.4:

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.

Removed selenium obfuscation.

Additions:

Importing and saving text files.

Language Selector to activate or deactivate any individual language.

Language setting for the result.

Three different split methods:

Initial

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.

Continuous

Text is split by length inside the obfuscate function.
Faster as less requests are made.
Same languages for each piece.
Tabs not preserved.

Newline

Text is split by newlines and tabs.
Slower as more requests are made.
Every single line is translated with different languages.
Tabs preserved.

Translation Generator which creates a .csv file containing multiple translations of the same text:

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.

pythontextobfuscator-cli's People

Contributors

kintamashii avatar opiter09 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.