HideWAVinJPG
stegobox.codec.HideWAVinJPG
Bases: BaseCodec
This algorithm allows to conceal audio files inside png images, using a well known steganographic method: hide the data in the least significant bits of an image pixels. This produces little changes to the image that usually aren't noticed by just looking at the image.
- Created by: QiuYu
- Created time: 2022/10/17
Originally implemented in AmanKardam/Image-Steganography-Hiding-Audio-
Source code in stegobox/codec/hide_wavinjpg/hide_wavinjpg.py
encode(carrier, payload)
Encoder requires carrier image to be JPG and payload to be a WAV audio.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
carrier |
Image
|
Carrier image in format JPG. Read with 'stegobox.io.image.read()'. |
required |
payload |
tuple[ndarray, int]
|
Payload (secret message) to be encoded.Payload in format WAV. Read
with |
required |
Returns:
Type | Description |
---|---|
tuple[Image, int]
|
Encoded image in format JPG with the payload embeded. |
Source code in stegobox/codec/hide_wavinjpg/hide_wavinjpg.py
decode_with_length(carrier, payload_len)
Decode the secret payload from the carrier image.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
carrier |
Image
|
Encoded carrier image. |
required |
payload_len |
int
|
The length of secret message |
required |
Returns:
Type | Description |
---|---|
tuple[ndarray, int]
|
The decoded payload (secret message). |