Skip to content

Implementation Hide Text In Image with encryption

Notifications You must be signed in to change notification settings

subc/steganography

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Digital image steganography of encrypted text

JPG, GIF, PNG, BMP.

日本語ドキュメント: Japanese Document

Installation

$ pip install steganography

Example Image

HTTPie compared to cURL

Sample Command

# encode example: hide text to image
>>>steganography -e /tmp/image/input.jpg /tmp/image/output.jpg 'The quick brown fox jumps over the lazy dog.'

# decode example: read secret text from image
>>>steganography -d /tmp/image/output.jpg
The quick brown fox jumps over the lazy dog.

Sample Code

# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from steganography.steganography import Steganography

# hide text to image
path = "/tmp/image/input.jpg"
output_path = "/tmp/image/output.jpg"
text = 'The quick brown fox jumps over the lazy dog.'
Steganography.encode(path, output_path, text)

# read secret text from image
secret_text = Steganography.decode(output_path)

Documentation

About

Implementation Hide Text In Image with encryption

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages