It is currently Wed Jul 17, 2019 5:52 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 45 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: LSB (Least Significant Bit) File Embedding
PostPosted: Mon Nov 23, 2015 3:12 am 
Offline
Addict
Addict

Joined: Sat Mar 02, 2013 9:17 am
Posts: 931
I have forget.
Bevore padding come also a randomized IV with 16 Bytes for the AES CBC Code.
Now you can mace pictures with hidden content which are in each Byte other, but all with the same content and all in the same picture and all looking same.
Nobody can compare this pictures for exploring your method or content.

_________________
http://www.nachtoptik.de


Last edited by walbus on Mon Nov 23, 2015 4:16 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: LSB (Least Significant Bit) File Embedding
PostPosted: Mon Nov 23, 2015 3:36 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Hi walbus,

Thank you for the additional information, it should benefit anyone wanting to create their own similar type application.

---------------------------------------

Updated:
- added bit selection from the bit-indicator
- added additional error handling
- enabled the threadsafe switch

NB*: Update also includes a small bug fix.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Tue Feb 27, 2018 5:18 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: LSB (Least Significant Bit) File Embedding
PostPosted: Tue Nov 24, 2015 3:01 pm 
Offline
Addict
Addict

Joined: Sat Mar 02, 2013 9:17 am
Posts: 931
Hi JHPJHP,
what you think for making additional a progress bar for looking the available free space for the hidden files ?

_________________
http://www.nachtoptik.de


Top
 Profile  
Reply with quote  
 Post subject: Re: LSB (Least Significant Bit) File Embedding
PostPosted: Tue Nov 24, 2015 5:51 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Hi walbus,

Are you speaking for your application or mine?

If you're referring to my application it's a good idea, but would only apply if I modified the code to allow multiple embedded files in a single bit, or large embedded files to cross bits.
- currently each bit can hold the MAX EMBEDDED SIZE calculated from the number of pixels in the loaded image

If I've misunderstood your idea please elaborate.

------------------------------------------------

Updated:
- added Drag & Drop
- added a context menu item: Set Window Top (default)

Drag & Drop
- drag files onto the image (max. 8 files)
- more than 8 files and the operation is cancelled
- folders will be ignored
- previously embedded files are overwritten without prompt
- press the "Reset Image" button to return to the previous state

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Tue Feb 27, 2018 5:35 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: LSB (Least Significant Bit) File Embedding
PostPosted: Tue Nov 24, 2015 8:16 pm 
Offline
Addict
Addict

Joined: Sat Mar 02, 2013 9:17 am
Posts: 931
Yep, sorry, i have not looking your code.
But, a other way, i think, is available.
You can make from my code and your code a new thing, with all features are possible.
I use for each RGB pixel 8 bit, as sample 2-3-3, this bits i mixed with random - as sample : 3-2-3 3-3-2 2-3-3 This fix moire, color distortion and you can make a lot hidden bytes in a picture.
My code is tricky, very little and simple.
For this we must write with PN, you want.
You make a very good job and we can make a amazing tool within, i think.

_________________
http://www.nachtoptik.de


Last edited by walbus on Wed Nov 25, 2015 11:57 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: LSB (Least Significant Bit) File Embedding
PostPosted: Tue Nov 24, 2015 9:35 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Updated:
- included type BMP (Bitmap Image) to the Save Requester
- added an ADS (Alternate Data Streams) Procedure
- fixed the OpenImage Procedure to use the correct plugin

Tested code with a large image (8000 x 4000 x 24):
- saving it as a PNG takes a considerable amount of time
- saving it as a BMP is quick, but the size of the saved image is considerably larger
- switch the "save as type" to suit your requirements

ADS (Alternate Data Streams)
- I'm using this method to save the Window State (StickyWindow status) to the default image

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Tue Feb 27, 2018 5:36 am, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: LSB (Least Significant Bit) File Embedding
PostPosted: Fri Nov 27, 2015 2:48 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Updated:
- added a context menu item: Enhanced Bit View
-- can also be opened by double-clicking the image while holding down the shift key

Enhanced Bit View
- a visual test to try and determine if an image contains a hidden file or message
- ignoring all but the value of the selected bit, the byte is set to 0 or enhanced to 255

The image content should be used to narrow down the type of discrepancies to look for.
- too much noise, unusual noise, or some sort of pattern
- unusual pixel alignments that seem out of place
- solid colors or lack thereof are a good place to start

It can take a practiced eye to know what to look for.
- this can be developed by comparing the differences between images before and after embedding

NB*: Update also includes some minor cosmetic and other changes.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: LSB (Least Significant Bit) File Embedding
PostPosted: Sun Nov 29, 2015 7:50 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Updated:
- added a context menu item: Convert Image to JPEG
- various cosmetic and other changes

Convert Image to JPEG
- I noticed that an image with the LSB modified will closely return to its original state when saved as a JPEG
- comparing the image in question with a copy saved as a JPEG can assist with determining if it's been compromised

If a small file is embedded into a large image, an Enhanced LSB visual test most likely won't reveal anything; a statistical analysis is required.
- if I can find the time and the interest I may add some sort of statistical analysis via the Chi-squared test

NB*: This option is only available if the loaded image is not already a JPEG, or if the JPEG recently had a file embedded into the active bit.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Sun Nov 29, 2015 10:17 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: LSB (Least Significant Bit) File Embedding
PostPosted: Sun Nov 29, 2015 8:13 pm 
Offline
Addict
Addict

Joined: Sat Mar 02, 2013 9:17 am
Posts: 931
Very nice !
Now, it is ever available localize hidden data in a LSB picture.
I self say, OK, i can not absolutely hidden, but you can not say what you found, or if you have ever found something.
You see, but you see absolutely nothing.
Nobody on this world can extract the hidden data from QAES, or can say, i have found hidden data.
Each same picture with the same hiddden content looking same, but each from this same pictures are different on each byte.

_________________
http://www.nachtoptik.de


Last edited by walbus on Fri Jan 22, 2016 2:38 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: LSB (Least Significant Bit) File Embedding
PostPosted: Sun Nov 29, 2015 8:17 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 04, 2015 7:10 am
Posts: 1673
Chi-squared test sounds great! google suggests nobody has done it in PB before :)

_________________
Thankyou to all the coders who generously helped & encouraged me in the nearly 2yrs when i was welcome here,
it was a tremendous privilege. I learned a lot. I wish you and your families all the best and success for the future.


Top
 Profile  
Reply with quote  
 Post subject: Re: LSB (Least Significant Bit) File Embedding
PostPosted: Fri Jan 22, 2016 2:36 pm 
Offline
Addict
Addict

Joined: Sat Mar 02, 2013 9:17 am
Posts: 931
Interesting to read :

https://en.wikipedia.org/wiki/Steganalysis

_________________
http://www.nachtoptik.de


Top
 Profile  
Reply with quote  
 Post subject: Re: LSB (Least Significant Bit) File Embedding
PostPosted: Sat Apr 30, 2016 9:00 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Hi Keya,

I've always meant to get back to this, anyways nice job applying the Chi Squared Test; I still may get around to applying a version of it to this project.

---------------------------------------------------

Hi walbus,

Yes that was a good read.

---------------------------------------------------

Based on comments from wilbert (Spider Web Drawing) I've updated the code and binaries for better cross-platform compatibility.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Tue Feb 27, 2018 5:19 am, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: LSB (Least Significant Bit) File Embedding
PostPosted: Sat Apr 30, 2016 12:18 pm 
Offline
Addict
Addict

Joined: Sat Mar 02, 2013 9:17 am
Posts: 931
Many thanks JHPJHP.
You make fantastic, cool, usefull and very helpfull things.
And your new Spider Web Drawing is very impressive !
http://www.purebasic.fr/english/viewtopic.php?f=12&t=65601

Best regards Werner

_________________
http://www.nachtoptik.de


Top
 Profile  
Reply with quote  
 Post subject: Re: LSB (Least Significant Bit) File Embedding
PostPosted: Fri May 06, 2016 4:09 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Hi walbus,

Thank you again for your kind words.

----------------------------------

Updated for better compliancy between platforms.
- based on comments from wilbert and idle (Spider Web Drawing)

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: LSB (Least Significant Bit) File Embedding
PostPosted: Fri Oct 14, 2016 4:42 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Updated:
- added encryption
-- Header / Bit Security window will open when the application is first executed
-- Header / Bit Security window can be opened from the context-menu
-- if a password field is left blank then the default password is used

There are two points of encryption...

Header Password:
- set once for each image container
- set before any file has been embedded or the default password used

Bit Password:
- can be set for each embedded file (8 bits / 1 bit per file)
- set before embedding a file otherwise the previous or default password is used

NOTE:
- dragging & dropping multiple files will use the previous or default password
- passwords cannot be changed on embedded files, but files can be re-embedded with a different password

NB*: Bit capacity can be increased by compressing (zip, rar, 7z) multiple files before embedding.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Fri Oct 14, 2016 4:15 pm, edited 2 times in total.

Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 45 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye