This console application allows you to hide information in images or extract information from images. The principle of operation is to divide the image into groups of randomly selected pixels and change the least significant bits in the color components (R, G, B) of these pixels.
-mode {encrypt/decrypt}
-i {image name}
: Supported formats - jpg, png, bmp-p {password}
: Password for correct encoding/decoding-m {message}
: The message to be hidden for decrypt mode (if file mode not selected)
-f {file name}
: Used to save the message to a file if the encoding mode is selected or to read the message from the file if the decoding mode is selected. You can write only-f
then the default names will be used (ouput.txt, input.txt)
test -mode decrypt -i tiger.bmp -p 123 -m "Message"
test -mode encrypt -i tiger.bmp -p 123
Encrypted message: Message
- Password is incorrect
test -mode encrypt -i tiger.bmp -p 321 Password is incorrect!
- Cant load image
test -mode encrypt -i tihger.bmp -p 123 Cant load image!
- Mode not selected
test -mode -i tiger.bmp -p 123 Error: Mode is not selected!
- Unknown mode
test -mode f -i tiger.bmp -p 123 Error: Unknown mode!