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")
Metadata
Release files for rubies 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rubies-1.0.1.tar.gz | 20.0 kB | Without provenance | Details for rubies-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rubies-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for rubies-1.0.1-py3-none-any.whl |
Total release size: 41.4 kB
Release files / rubies-1.0.1.tar.gz
| Download URL | rubies-1.0.1.tar.gz |
|---|---|
| Size | 20.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17adc3c94aac380f24aef83a40bffd14f5bcde1e99c01d2e11c3c50fc976aeb8
|
|
BLAKE2b-256 checksum How to use checksums |
01d0a18486db537c1eb3513b8c9300e5ff04388aa48c7d1b05380b0ccc3f127e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / rubies-1.0.1-py3-none-any.whl
| Download URL | rubies-1.0.1-py3-none-any.whl |
|---|---|
| Size | 21.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
73d79ce78263866f86529abb9ac12878587617514304fe94089c16b484e800de
|
|
BLAKE2b-256 checksum How to use checksums |
6460cf42d9cd9ebecc53fb911b1534de106dfcaa9aa257238b9470990c3b5695
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for rubies 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.