HFHS (Haystack File Hiding System) is designed to protect your important files by hiding them within a complex maze of folders. Just like finding a needle in a haystack, locating these files without knowing the exact pattern used for folder creation is near impossible. Keep your files safe and secure with HFHS!"
HFHS provides two scripts:
- main.py: This script generates a complex folder structure, making it difficult to locate specific files without prior knowledge of the pattern used for folder creation.
- del.py: This script deletes the folders and files created by the
main.py
script in a fast and efficient manner.
Certainly! Here's the updated "How to Use" section with instructions for running the scripts via the command line:
To use HFHS:
- Clone the repository to your local machine.
- Navigate to the repository directory.
- Open
main.py
in a text editor. - Adjust the
desired_nesting_level
andnum_threads
variables according to your needs:- desired_nesting_level: This variable determines how deep the folder structure will be. Higher values result in more complex folder structures with more levels of nesting. Lower values create simpler structures. Adjust this value based on how hidden you want your files to be within the folder maze. For example, setting
desired_nesting_level = 5
will create a moderately complex folder structure. - num_threads: This variable controls the concurrency level, i.e., the number of threads used for parallel execution of folder creation operations. Increasing this value may speed up the folder creation process, but it depends on your system's capabilities. Be cautious not to set it too high, as it may overload your system. For example, setting
num_threads = 205
will utilize 205 threads for parallel execution.
- desired_nesting_level: This variable determines how deep the folder structure will be. Higher values result in more complex folder structures with more levels of nesting. Lower values create simpler structures. Adjust this value based on how hidden you want your files to be within the folder maze. For example, setting
- Save the changes to
main.py
. - To run the script via the command line, open a terminal or command prompt:
- Navigate to the directory containing
main.py
. - Run the command:
python main.py
.
- Navigate to the directory containing
- After the script finishes execution, run
del.py
to delete the created folders and files:- In the same terminal or command prompt, navigate to the directory containing
del.py
. - Run the command:
python del.py
.
- In the same terminal or command prompt, navigate to the directory containing
The time taken to generate folder structures at different nesting levels may vary based on your computer's CPU specifications. The following information is based on a developer PC with a CPU containing 4 threads
and 4 cores
:
Nesting Level | Number of Folders | Time Taken |
---|---|---|
Level 3 | 1110 | 0.74 seconds |
Level 4 | 11110 | 2.42 seconds |
Level 5 | 111110 | 67.62 seconds |
Level 6 | 1111110 | 1002.05 seconds |
Level 7 | 11111110 | Approximately 4.13 hours |
Level 8 | 111111110 | Approximately 61.19 hours |
Level 9 | 1111111110 | Approximately 904.47 hours or 37.69 days |
Level 10 | 11111111110 | Approximately 13446.25 hours or 560.26 days |
Here's a graphical representation of the folder structure created by HFHS at nesting level 3: