Skip to main content

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


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.0.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rubies-1.0.0-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file rubies-1.0.0.tar.gz.

File metadata

  • Download URL: rubies-1.0.0.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for rubies-1.0.0.tar.gz
Algorithm Hash digest
SHA256 132a125e11e1c48d0fa7eb17ae87c07aa0785c516ea2e4892308a836d5b236a5
MD5 b0ded7a529b82a4496de2b8b9d876af4
BLAKE2b-256 f5f17ae6e67952487bd4b7a08bbc8c426f5407e303ec8cfe46f28ceeb6315d8c

See more details on using hashes here.

File details

Details for the file rubies-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: rubies-1.0.0-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

Hashes for rubies-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2105a1f1da5492f53949261777092379d4149e0dc8275cbb660e64d57db65628
MD5 1beafeb2a5be9f3a1a82dce5f7f63219
BLAKE2b-256 521485397689c4ac4583eeb56254fceb05f1681986ad3872c4f987f5a48c8c58

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page