https://github.com/parzibyte/esteganografia-python
Esteganografía con Python 3. Ejemplo para ocultar texto en imágenes
https://github.com/parzibyte/esteganografia-python
image image-manipulation lsb pil python-3 steganography
Last synced: 15 days ago
JSON representation
Esteganografía con Python 3. Ejemplo para ocultar texto en imágenes
- Host: GitHub
- URL: https://github.com/parzibyte/esteganografia-python
- Owner: parzibyte
- License: gpl-3.0
- Created: 2019-10-01T21:29:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-01T21:49:16.000Z (over 5 years ago)
- Last Synced: 2025-03-26T07:11:34.080Z (about 1 month ago)
- Topics: image, image-manipulation, lsb, pil, python-3, steganography
- Language: Python
- Homepage: https://parzibyte.me/blog/2018/04/06/esteganografia-python-imagenes-lsb-introduccion/
- Size: 794 KB
- Stars: 9
- Watchers: 0
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Esteganografía con Python 3 y PIL
Esteganografía con Python 3. Ejemplo para ocultar texto en imágenes
**Nota:** Recomiendo primero leer sobre [esteganografía, LSB, MSB, bits y pixeles](https://parzibyte.me/blog/2018/04/05/esteganografia-imagenes-lsb/)
# Modo de uso
Los archivos importantes son **ocultar.py** y **leer.py**, dentro de ellos está el código necesario y las funciones para la esteganografía
Recuerda [tener instalado Python y pip](https://parzibyte.me/blog/2017/11/19/instalar-configurar-python-3-windows-10/).
## Ocultar
Para ocultar simplemente invoca a la función `ocultar_texto` así:
```python
ocultar_texto("Hola, mundo. Esto es un mensaje oculto desde parzibyte.me/blog", "oveja.png")
```
Como primer argumento pasa el texto a ocultar, y como segundo argumento la imagen en donde se guardará el mensaje. Recuerda que opcionalmente puedes indicar un tercer argumento para indicar la imagen de salida, si no lo haces, se guardará en **salida.png**
## Mostrar
Para mostrar invoca a la función `leer` así:
```python
mensaje = leer("salida.png")
```Esta función únicamente toma el nombre de la imagen que tiene el texto oculto
# Tutorial
Si quieres ver un ejemplo o cómo fue hecho todo esto, mira el tutorial:
https://parzibyte.me/blog/2018/04/06/esteganografia-python-imagenes-lsb-introduccion/