A steganography tool for hiding two images into one image.
Project description
Rubie's Steganography
This code implements the paper "Digital Image Steganography: An FFT Approach" by Tamer Rabie. It is a way to embedding two images to one carrier image.
Installation
~$ pip install rubies
Usage
Within the examples below, you will be completely understand all the functionality of rubies package.
Encode Two Images into an Image
# Import Rubie's Encoder.
from rubies import Encoder
# Create an encoder instance with carrier image.
encoder = Encoder("carrier_image.png", secret_size=(500, 500))
# Encode the secret images onto carrier. Return value can be also used.
encoded_image = encoder.encode("secret_image_a.png", "secret_image_b.png")
# Save the image.
encoder.save("encoded_image.png")
Decode an Image with Unknown Secret Size
# Import Rubie's Decoder.
from rubies import AutoDecoder
# Create a decoder instance with encoded image and carrier image.
decoder = AutoDecoder("encoded_image.png")
# Decode the secret images from the encoded image. Return values can be also used.
secret_image_a, secret_image_b = decoder.decode()
# Save the secret images.
decoder.save("secret_image_a.png", "secret_image_b.png")
Decode an Image with Known Secret Size
# Import Rubie's Decoder.
from rubies import SimpleDecoder
# Create a decoder instance with encoded image and carrier image.
decoder = SimpleDecoder("encoded_image.png", secret_image_sizes=(500, 500))
# Decode the secret images from the encoded image. Return values can be also used.
secret_image_a, secret_image_b = decoder.decode()
# Save the secret images.
decoder.save("secret_image_a.png", "secret_image_b.png")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rubies-1.0.1.tar.gz
(20.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
rubies-1.0.1-py3-none-any.whl
(21.4 kB
view details)
File details
Details for the file rubies-1.0.1.tar.gz.
File metadata
- Download URL: rubies-1.0.1.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17adc3c94aac380f24aef83a40bffd14f5bcde1e99c01d2e11c3c50fc976aeb8
|
|
| MD5 |
c17426e1d2ec2bc6cd6d530424ac6829
|
|
| BLAKE2b-256 |
01d0a18486db537c1eb3513b8c9300e5ff04388aa48c7d1b05380b0ccc3f127e
|
File details
Details for the file rubies-1.0.1-py3-none-any.whl.
File metadata
- Download URL: rubies-1.0.1-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73d79ce78263866f86529abb9ac12878587617514304fe94089c16b484e800de
|
|
| MD5 |
51b8cb36e8b5add263afe5771315120a
|
|
| BLAKE2b-256 |
6460cf42d9cd9ebecc53fb911b1534de106dfcaa9aa257238b9470990c3b5695
|