Encode files into a large set of images to achieve a dramatic increase in storage size—approximately 530 times the original! This project showcases a creative approach to data obfuscation by converting text into binary format and storing it within images.
From the concept of turning text into images, we explore how this method can vastly increase storage size, making it a fascinating example of data handling.
This project converts text from info.txt into binary format and encodes it as a series of images in the Secret/ folder. The encoded images can then be decoded back into the original text. This approach offers a unique way to increase storage size and can be a fun demonstration of data manipulation.
- Text Encoding: Convert text to binary and encode it into a series of images.
- Text Decoding: Decode images back into the original text.
- Size Comparison: View the size increase ratio, which can be as high as 530 times the original data size!
-
Clone the Repository: Clone the repository from GitHub and navigate into the project directory.
git clone https://github.com/system1970/Storing-Files-using-Files.git cd Storing-Files-using-Files -
Install Dependencies: Ensure you have Python 3 installed, then install the required packages using
pip.pip install -r requirements.txt
-
Prepare the Input File: Add the text you want to encode to
info.txt. -
Run the Encoding Script: Execute the script to encode the text into binary images. The encoded images will be saved in the
Secret/folder.python src/file_encryption.py
-
Decode the Images: Use the decoding method in the script to convert the images back into text.
Here’s how you can use this project:
- Place your text into
info.txt. - Run the encoding script.
- Check the
Secret/folder for the output images. - Use the decoding method to retrieve the original text.
Feel free to fork the repository and submit a pull request with any improvements or fixes. Contributions are welcome!