Text Encoding/Decoding Web App
This is a simple web application built with Flask that allows users to perform text encoding and decoding. What sets this app apart is its ability to automatically recognize and utilize scripts placed in designated folders, providing a seamless experience for adding new encoding and decoding methods.
To add new encoding or decoding scripts, refer to the structure of the existing scripts in the decoding_scripts
and encoding_scripts
folders. Simply create new Python files with your encoding and decoding functions inside these folders. The web application will automatically detect and include them in the dropdown menus for users to choose from.
To add new encoding or decoding methods, follow these rules:
-
File Naming: Name your Python script ending with
_encode.py
for encoding or_decode.py
for decoding. For example:my_script_encode.py
,custom_decode.py
. -
Script Functions: Ensure your Python script contains a function named
encode(text)
for encoding ordecode(text)
for decoding. These functions should accept a string input (text
) and return the encoded or decoded string. -
Folder Placement: Place your encoding scripts in the
encoding_scripts
directory and decoding scripts in thedecoding_scripts
directory.