zeruniverse / CryptoStego

JS library for steganography with encryption - Hide text in an image with encryption and obfuscation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LSB mode will crash when use PNG with transparent backgound

liam-thunder opened this issue · comments

commented

when I try to decode some PNG with transparent backgound, my Chrome or IE will stuck and crash..

commented

@zeruniverse thanks for your quick reply!
I've tested on stego.js.org, using a png with transparent background a simple message "1", using Level 1 to write image
star_png1580
Write can be performed successfully, but the picture's background has been turned into all black. And this black-background png image's message can be read successfully.

But when I read message from a transparent background png image with no message contained, it will caused my Chrome stuck and crash.

BTW, when I try to read some message from a picture (with background) which has no message contained, it will show some messy characters. I don't know the algorithm behind stego, but I wonder if there any possible enhancement to make this behavior better?

Thanks!

commented

Thanks.. So the crash is intended ? I get it..
I indeed use level 0 for LSB.. the above comment 'level 1' is a typo. sorry.
Still the transparent backgound is turned into black when write message to a transparent png

commented

Ok, thanks for the help!