B4A Library [Class] Steganography on PNG Image

This is the Class Object to put Steganography code in a Picture

Instructions :
Initialize(Slayers, SDetectCode As String)
- Slayers is(are) the Layer(s) who put le Stegano. There are 3 layers "1" (for Blue) "2" (for Green) "3" (for Red), but we can use a multilayers like "12131" (the first bit code en layer 1, second on 2...)
- SDetectCode Detection Code for Begin and End of Stegano. This is 2 chars (don't use ordinary chars but for example "þÞ")

MarkStegano(bitmapSteg As Bitmap, Text As String) As Bitmap
Print the Text in the Image bitmapSteg. The result is the Image with Stegano Code.

ReadStegano(bitmapSteg as Bitmap) As String
Read the Stegano code in b picture

SaveImage(FilePath,FileName As String,bitmapSteg As Bitmap)
Save the new Image (only in PNG... don't modify or stegano will be broken)

Enjoy !
 

Attachments

  • Steganography.zip
    1.7 KB · Views: 361
Last edited:

peacemaker

Expert
Licensed User
Longtime User
Very interesting :)
It's time to understand where to use...
 
Top