# A New Way to Store Simple Text Files
## 3 Analysis And Discussions
### Application in Steganography  
The presented method, apart from compression, also allows hiding the contents of a text file. The following is because the content of processed files in the format _png_ looks random at first glance. This is confirmed by the sample Figures 2 and 3. A secondary observer is not able to directly extract the content contained in the image. Of course, if the graphic file is created as described in the article, then it may try to read it using the reversed method. It should be noted that the reverse method, i.e., the transition from image to text, is fully reversible. Thus, its effectiveness is 100%. However, the proper determination of the method of image hiding or encryption (in the case when the file was found to be an encrypted image) does not have to be so simple, which suggests a large number of algorithms addressing this issue, e.g., [34; 35; 36; 37; 38; 39]. Table 4 shows the transition times from the graphic file to the text file. At every turn, the script has been executed 100 times, and the results show the average time and standard deviation. The results show that the transition from image to text is not a time-consuming process.  
Compared to files compressed and stored in the format _zip_, the advantage of hiding the file's content is undoubted. A computer system can easily open the _zip_ file. It means that we have direct access to the content of the text file. However, to make a change to a compressed file, it must be firstly decompressed. Though, the proposed method allows reading a specific pixel _png_ file and its modification (only those particular pixel).  
\begin{table}
\begin{tabular}{c c c c c} \hline \hline
**File** & **Text File Size (B)** & **Compression Method** & **Compressed File Size (B)** & **CR** \\ \hline data1.txt & 184,401 & & zip & 70,990 & 0.3849 \\  & 184,401 & & b22 & 60,433 & 0.3277 \\  & & & gz & 74,393 & 0.4034 \\  & & & zip & 99,364 & 0.3933 \\ data2.txt & 252,640 & & b22 & 81,066 & 0.2298 \\  & & & gz & 103,412 & 0.4093 \\  & & & zip & 479,335 & 0.4393 \\ data3.txt & 1,091,008 & & b22 & 458,533 & 0.4202 \\  & & & gz & 499,474 & 0.4578 \\  & & & zip & 2567 & 0.2043 \\ data4.json & 12,563 & & b22 & 2518 & 0.2004 \\  & & & gz & 2512 & 0.1999 \\ python.py & 8740 & & zip & 2202 & 0.2519 \\  & & & gz & 2128 & 0.2434 \\  & & & zip & 12,684 & 0.3324 \\ latex.tex & 38,153 & & b22 & 12,609 & 0.3304 \\  & & & gz & 13,184 & 0.3455 \\ \hline \hline \end{tabular}
\end{table}
Table 3: Results for selected test files using different file compressing methods. The list of columns includes filename, size of the text file, compression method, size of the compressed file and CR.  
As described above, during the last step of the algorithm, the filename can be renamed by the use of the hash function. The original filename and its extension are hidden inside the image. Identifying the right file requires reading and processing many images \(png\) as it finds the right one. For the owner of the text files (or for the server on which they are stored), it is possible to create an encrypted list with information about the name under which the file is stored (after converting it to the \(png\) format). However, if one does not need to protect its data in this way, then the step of naming the image with its hash can be skipped.  
Another problem related to data, in particular large data sets, is their processing [40], including sorting [41; 42; 43], or processing to get random values from the collected data [44]. The proposed method of data storage allows for further processing, even though they are hidden to the human eye.