Hide text information in .wav audio using LSB
DOI:
https://doi.org/10.61117/ipsumtec.v9i1.461Keywords:
AES Encryption, Steganography, LSB, Python, Digital SecurityAbstract
This article describes the development of a Python library for hiding information in audio files using the Least Significant Bit (LSB) steganographic method. The objective was to design a reusable package capable of embedding and extracting PDF files within WAV audio files without perceptibly affecting their quality.
The research followed an experimental approach divided into five stages: review of the state of the art, definition of the LSB algorithm, integration of symmetric encryption with AES-256, code implementation, and results validation. The PyDub library was used for audio manipulation, NumPy for sample processing, and Fernet for encryption. The process consisted of encrypting the PDF file, modifying the least significant bits of the audio samples to insert the data, and reconstructing the WAV file. Extraction was performed inversely, recovering and decrypting the embedded message.
The results demonstrated that the LSB method combined with AES-256 encryption effectively hides information while maintaining the integrity of the original file and preserving sound quality. In all tests, both locally and on the PythonAnywhere platform, the PDF file was fully recovered, and the audio remained perceptually identical to the original.
It is concluded that audio steganography using Python is an effective alternative for protecting sensitive information by combining encryption security with the discretion of digital hiding. However, the method’s fragility against compression or audio manipulation is recognized. As future work, it is proposed to optimize data capacity and explore more robust steganographic techniques.
Downloads
Metrics
References
Evsutin, A. Melman y R. Meshcheryakov, «“Digital Steganography and Watermarking for Digital Images: A Review of Current Research Directions,”,» IEEE Access vol. 8, pp. 166589–166611, doi: 10.1109/access.2020.3022779., 2020. [En línea]. Available: https://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=9187785. DOI: https://doi.org/10.1109/ACCESS.2020.3022779
Fortinet. ¿Qué es la criptografía? Definición, importancia, tipos [Internet]. 2025 [citado 2026 Feb 13]. Disponible en: https://www.fortinet.com/lat/resources/cyberglossary/what-is-cryptography
Arias A.G. Esteganografía en archivos digitales. [Tesis de Licenciatura]. Madrid: Universidad Complutense de Madrid;2021.
Bahl J, Ramakishore R. Técnica LSB y sus variaciones utilizadas en la esteganografía de audio: una revisión. Rev Int Investig Ing Tecnol. 2013;2(4):2327-2332.
Blanco SA, Budiman AA. Esteganografía en archivos de audio MP3 para proteger mensajes utilizando los métodos del bit menos significativo (LSB) y del Estándar de Cifrado Avanzado (AES). Rev TIFDA (Tecnología de la Información y Análisis de Datos). 2025;2(1):42–5. DOI: https://doi.org/10.70491/tifda.v2i1.80
Digital Image Steganography. A literature survey. Information Sciences. 2022;606:32–47. doi:10.1016/j.ins.2022.05.053. DOI: https://doi.org/10.1016/j.ins.2022.05.053
Sion R. Steganography. En: Liu L, Özsu MT, editores. Encyclopedia of Database Systems. New York: Springer; 2018. DOI: https://doi.org/10.1007/978-1-4614-8265-9_1487
Johnson NF, Duric Z, Jajodia S. Information Hiding: Steganography and Watermarking—Attacks and Countermeasures. Boston: Kluwer Academic/Plenum; 2001. p. 15. DOI: https://doi.org/10.1007/978-1-4615-4375-6_2
Ahmed MA, Hossain MS, Rahman MM. Audio steganography with intensified security and hiding capacity. Int J Comput Appl. 2025;2(1):1–10. Disponible en: https://www.researchgate.net/publication/389751245_Audio_Steganography_with_Intensified_Security_and_Hiding_Capacity
Hossain MT. Audio steganography using genetic algorithms for optimized signal-to-noise ratio and data capacity. J Eng Technol. 2023;2(1):1–10. Disponible en: https://www.researchgate.net/publication/391234555_Audio_Steganography_Using_Genetic_Algorithms
Cvejic N, Seppänen T. Increasing the capacity of LSB-based audio steganography. En: Proceedings of the IEEE Workshop on Multimedia Signal Processing. Siena: IEEE; 2004. p. 336–338. doi:10.1109/MMSP.2004.1436568. DOI: https://doi.org/10.1109/MMSP.2002.1203314
Modibbo AA, Ngene CU, Bulus B. Esteganografía de audio mediante cifrado AES y sustitución LSB para la protección de datos militares. Int J Pure Appl Sci. 2025;8(9):004. doi:10.70382/nijpas.v8i9.004. DOI: https://doi.org/10.70382/nijpas.v8i9.004
Nasr MA, El-Shafai W, El-Rabaie EM, El-Fishawy AS, El-Hoseny HM, Abd El-Samie FE, Abdel-Salam N. Técnica robusta de esteganografía en audio basada en el cifrado de imágenes mediante diferentes mapas caóticos. Scientific Reports. 2024;14(1):22054. doi:10.1038/s41598-024-70940-3. DOI: https://doi.org/10.1038/s41598-024-70940-3
Pérez-Marín D, Pascual-Nieto. Fundamentos de seguridad informática. Madrid: Ediciones Paraninfo; 2021
Zeballos Soruco JA. Esteganografía de archivos de audio WAV: inserción de ejecutables y análisis de evasión antivirus. Rev Ciencia Tecnol Digit. 2025;1(1). Disponible en: https://revistas.usfx.bo/index.php/rctd/article/view/2068
Sánchez Rinza BE, Munive Morales LG, Jaramillo Núñez A. LSB Algorithm to Hide Text in an Audio Signal. Computación y Sistemas. 2022;26(1):39-44. DOI: https://doi.org/10.13053/cys-26-1-4150
Hamdi AA, Eyssa AA, Abdalla MI, ElAffendi M, AlQahtani AA, Ateya AA, et al. Improving audio steganography transmission over various wireless channels. J Sens Actuator Netw. 2025;14(6):106. DOI: https://doi.org/10.3390/jsan14060106
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Wendy Carranza Díaz , María Concepción Villatoro-Cruz , Guillermina Jiménez Rasgado , José Aurelio Ramírez González , Pablo Francisco Vivas Torres

This work is licensed under a Creative Commons Attribution 4.0 International License.
