Software implementation of steganographic hiding of text information in a graphic file using the LSB method

Keywords: steganography, information protection, information hiding, information masking in files, static images, photographs, Python language, Pillow library

Abstract

The paper presents the code of a training program for steganographic hiding of text information in graphic files. Hiding is implemented using the “least significant bit” (LSB) method in Python. The program can be used for both educational and practical purposes. The Pillow library was used to implement the program. This graphic library is not specialized for steganographic needs. A positive quality of the library is the ability to visualize the information hiding mechanism. This is interesting for educational purposes. Working within the Pillow library allows us to see the mechanism of information hiding at the bit level of individual graphics pixels at the level of a fairly concise program code. The program was tested with texts of different lengths and with graphic containers (photographs) of different types. The experiment showed the correct introduction of texts into a graphic file and the corresponding extraction of texts from these files. The study of empty and corresponding filled containers (photographs) did not reveal any differences and suspicions of text bookmarks. Analysis of photographs and manipulations with them at the level of individual bits also has educational value in the sense of revealing the method of fixing the corresponding physical signal. The latter gives an idea of the methods of encoding static images, the noise level, the magnitude of the useful physical signal and the sensitivity limits of human vision. The presented program code can be used both in cryptography classes and in practical programming

References

1. Kefa Rabah. Steganography-The Art of Hiding Data. Information Technology Journal, 2004. 3 (3): P. 245-269.
2. Г. Ф. Конахович, Д. О Прогонов, О. Ю. Пузиренко, Комп’ютерна стеганографічна обробка й аналіз мультимедійних даних [підручник]. К.: Центр навчальної літератури, 2018. 558 c.
3. Hegarty, M., and Keane, A. Steganography, The World of Secret Communications. 2018. 88 p.
4. Hassabalah, M. Digital Media Steganography: Principles, Algorithms, and Advances. Academic Press. 2020.
5. Tanna, S. Codes, Ciphers, Steganography & Secret Messages. Answers Limited. 2020.

Abstract views: 24
PDF Downloads: 13
Published
2025-06-16
How to Cite
Holovin М., Holovina , N., & Huzachov , D. (2025). Software implementation of steganographic hiding of text information in a graphic file using the LSB method. COMPUTER-INTEGRATED TECHNOLOGIES: EDUCATION, SCIENCE, PRODUCTION, (59), 82-87. https://doi.org/10.36910/6775-2524-0560-2025-59-11
Section
Computer science and computer engineering