<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>beyond compare Archives - Christian Espinosa</title>
	<atom:link href="https://christianespinosa.com/blog/tag/beyond-compare/feed/" rel="self" type="application/rss+xml" />
	<link>https://christianespinosa.com/blog/tag/beyond-compare/</link>
	<description>Bestselling Author &#124; Keynote Speaker &#124; Cybersecurity Expert</description>
	<lastBuildDate>Sun, 05 Sep 2021 06:07:03 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.1</generator>

<image>
	<url>https://christianespinosa.com/wp-content/uploads/2021/09/cropped-Christian-Espinosa-Blue-White-Logo-32x32.png</url>
	<title>beyond compare Archives - Christian Espinosa</title>
	<link>https://christianespinosa.com/blog/tag/beyond-compare/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>3 Steps to Hide Data in an Image Using Steganography</title>
		<link>https://christianespinosa.com/blog/3-steps-to-hide-data-in-an-image-using-steganography/</link>
					<comments>https://christianespinosa.com/blog/3-steps-to-hide-data-in-an-image-using-steganography/#respond</comments>
		
		<dc:creator><![CDATA[Christian Espinosa]]></dc:creator>
		<pubDate>Sat, 04 Sep 2021 06:40:47 +0000</pubDate>
				<category><![CDATA[Cybersecurity]]></category>
		<category><![CDATA[beyond compare]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[hiding]]></category>
		<category><![CDATA[jphide]]></category>
		<category><![CDATA[jpseek]]></category>
		<category><![CDATA[lilbub]]></category>
		<category><![CDATA[steganography]]></category>
		<guid isPermaLink="false">https://christianespinosa.com/?p=2635</guid>

					<description><![CDATA[<p>In this post we&#8217;ll explain a simple method to hide data (any type of data &#8211; text, image, malware, etc.) in a JPEG. This is a form of steganography. Steganography is the art and science of hiding something in plain sight. Why hide something in plain sight &#8211; overtly hide something? To not tip anyone [&#8230;]</p>
<p>The post <a href="https://christianespinosa.com/blog/3-steps-to-hide-data-in-an-image-using-steganography/">3 Steps to Hide Data in an Image Using Steganography</a> appeared first on <a href="https://christianespinosa.com">Christian Espinosa</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='3 Steps to Hide Data in an Image Using Steganography' data-link='https://christianespinosa.com/blog/3-steps-to-hide-data-in-an-image-using-steganography/' data-app-id-name='category_above_content'></div><figure id="attachment_2636" aria-describedby="caption-attachment-2636" style="width: 355px" class="wp-caption alignright"><img fetchpriority="high" decoding="async" class=" wp-image-2636" src="https://christianespinosa.com/wp-content/uploads/2021/09/image-containing-steganography-300x168.jpg" alt="image-containing-steganography" width="355" height="199" srcset="https://christianespinosa.com/wp-content/uploads/2021/09/image-containing-steganography-300x168.jpg 300w, https://christianespinosa.com/wp-content/uploads/2021/09/image-containing-steganography.jpg 636w" sizes="(max-width: 355px) 100vw, 355px" /><figcaption id="caption-attachment-2636" class="wp-caption-text">Image containing a hidden file using steganography techniques</figcaption></figure>
<p>In this post we&#8217;ll explain a simple method to hide data (any type of data &#8211; text, image, malware, etc.) in a JPEG. This is a form of <a href="https://en.wikipedia.org/wiki/Steganography" target="_blank" rel="noopener noreferrer">steganography</a>. Steganography is the art and science of hiding something in plain sight. Why hide something in plain sight &#8211; overtly hide something? To not tip anyone off that there is a secret message or hidden data.</p>
<p class="" style="white-space: pre-wrap;">This post focuses on a technique, rather than a history lesson on steganography, so on to the gist&#8230;</p>
<h3 style="white-space: pre-wrap;">1. Download and extract the JPHS (JPEG Hide and JPEG Seek) tool:</h3>
<ul data-rte-list="default">
<li>
<p class="" style="white-space: pre-wrap;"><a href="http://linux01.gwdg.de/~alatham/stego.html" target="_blank" rel="noopener noreferrer">gwdg.de site</a></p>
</li>
</ul>
<h3 style="white-space: pre-wrap;">2. Download a cover image (the image you will hide the data inside of) and a hide image (the image you will hide inside the cover image):</h3>
<p class="" style="white-space: pre-wrap;">The cover image should be roughly 10 times the size of the hide image.  In our example, we will use a HD Background as the cover image and a picture of a cute kitten as the hide image.</p>
<ul data-rte-list="default">
<li>
<p class="" style="white-space: pre-wrap;">Cover Image &#8211; background.jpg (found doing a Google search for &#8220;hd backgrounds&#8221;):</p>
</li>
</ul>
<p><a href="https://alpinesecurity.com/wp-content/uploads/2020/02/steganography-cover-image.jpg"><img decoding="async" class="alignnone" src="https://alpinesecurity.com/wp-content/uploads/2020/02/steganography-cover-image.jpg" alt=" Source: http://hdgreatimages.com/wp-content/uploads/2016/04/Bridge-HD-Backgrounds.jpg " width="1920" height="1080" /></a> Source: http://hdgreatimages.com/wp-content/uploads/2016/04/Bridge-HD-Backgrounds.jpg</p>
<ul data-rte-list="default">
<li>
<p class="" style="white-space: pre-wrap;">Hide Image &#8211; kitten.jpg (found doing a Google search for &#8220;lilbub&#8221;):</p>
</li>
</ul>
<p><a href="https://alpinesecurity.com/wp-content/uploads/2020/02/lilbub-hide-file.jpg"><img decoding="async" class="alignnone" src="https://alpinesecurity.com/wp-content/uploads/2020/02/lilbub-hide-file.jpg" alt=" Source: https://pbs.twimg.com/profile_images/466984253255729152/8yMo8O4K.jpeg " width="512" height="512" /></a></p>
<p><a href="https://alpinesecurity.com/wp-content/uploads/2020/02/steganography-filesize.jpg"><img loading="lazy" decoding="async" class="alignnone" src="https://alpinesecurity.com/wp-content/uploads/2020/02/steganography-filesize.jpg" alt="jphide and jpseek" width="532" height="110" /></a></p>
<h3 style="white-space: pre-wrap;">3. Run Jphswin. Accept the terms. Do the following:</h3>
<p class="" style="white-space: pre-wrap;">Click on &#8220;Open jpeg&#8221;, select &#8220;background.jpg&#8221; and click &#8220;open&#8221;:</p>
<figure style="width: 545px" class="wp-caption alignnone"><a href="https://alpinesecurity.com/wp-content/uploads/2020/02/jphswin-input-file-selection.jpg"><img loading="lazy" decoding="async" src="https://alpinesecurity.com/wp-content/uploads/2020/02/jphswin-input-file-selection.jpg" alt=" Selecting the Input (Cover) file in JPHS for Windows " width="545" height="399" /></a><figcaption class="wp-caption-text">Selecting the Input (Cover) file in JPHS for Windows</figcaption></figure>
<p>&nbsp;</p>
<p class="" style="white-space: pre-wrap;">Click on &#8220;Hide&#8221;, enter a passphrase, click &#8220;OK&#8221;, then select the hide file (kitten.jpg), and click &#8220;Open&#8221;:</p>
<figure style="width: 528px" class="wp-caption alignnone"><a href="https://alpinesecurity.com/wp-content/uploads/2020/02/jphswin-hide-file.jpg"><img loading="lazy" decoding="async" src="https://alpinesecurity.com/wp-content/uploads/2020/02/jphswin-hide-file.jpg" alt=" Selecting the Hide file in JPHS for Windows " width="528" height="392" /></a><figcaption class="wp-caption-text">Selecting the Hide file in JPHS for Windows</figcaption></figure>
<p>&nbsp;</p>
<p class="" style="white-space: pre-wrap;">Save the steg&#8217;d file (the kitten.jpg file hidden in the background.jpg file) as another file name, so we can compare the new file containing the hidden data with the original file. Click &#8220;Save jpeg as&#8221; and use the file name &#8220;bridge.jpg&#8221; (or something different than the original name):</p>
<figure style="width: 534px" class="wp-caption alignnone"><a href="https://alpinesecurity.com/wp-content/uploads/2020/02/saving-hidden-file.jpg"><img loading="lazy" decoding="async" src="https://alpinesecurity.com/wp-content/uploads/2020/02/saving-hidden-file.jpg" alt=" Saving the Steg'd file in JPHS for Windows " width="534" height="383" /></a><figcaption class="wp-caption-text">Saving the Steg&#8217;d file in JPHS for Windows</figcaption></figure>
<p>&nbsp;</p>
<p class="" style="white-space: pre-wrap;">You should now see 3 files &#8211; the &#8220;background.jpg&#8221; should look the same (to the naked eye) as the &#8220;bridge.jpg&#8221; even though the &#8220;kitten.jpg&#8221; file is hidden inside &#8220;bridge.jpg&#8221;:</p>
<p><a href="https://alpinesecurity.com/wp-content/uploads/2020/02/3-files.jpg"><img loading="lazy" decoding="async" class="alignnone" src="https://alpinesecurity.com/wp-content/uploads/2020/02/3-files.jpg" alt="stego'd images" width="527" height="63" /></a></p>
<p class="" style="white-space: pre-wrap;">Open both &#8220;background.jpg&#8221; and &#8220;bridge.jpg&#8221; side-by-side in Windows Photo Viewer to see if you can tell a difference:</p>
<figure style="width: 1376px" class="wp-caption alignnone"><a href="https://alpinesecurity.com/wp-content/uploads/2020/02/original-next-to-steganography.jpg"><img loading="lazy" decoding="async" src="https://alpinesecurity.com/wp-content/uploads/2020/02/original-next-to-steganography.jpg" alt=" Original image on the left. Steg'd image on the right. Can you see any difference? " width="1376" height="584" /></a><figcaption class="wp-caption-text">Original image on the left. Steg&#8217;d image on the right. Can you see any difference?</figcaption></figure>
<p class="" style="white-space: pre-wrap;">Congratulations! You&#8217;ve just practiced steganography.</p>
<h2 style="white-space: pre-wrap;">Validation</h2>
<p class="" style="white-space: pre-wrap;">Let&#8217;s validate our steganography demonstration actually worked by extracting the &#8220;kitten.jpg&#8221; from the &#8220;bridge.jpg&#8221;:</p>
<p class="" style="white-space: pre-wrap;">Using JPHS for Windows, select &#8220;Open jpeg&#8221;, select &#8220;bridge.jpg&#8221;, click &#8220;Open&#8221;:</p>
<p>Opening the image containing the hidden file in JPHS for Windows</p>
<p class="" style="white-space: pre-wrap;">After you opened the &#8220;bridge.jpg&#8221; file click on &#8220;Seek&#8221;, enter the passphrase you used to hide the file, click &#8220;OK&#8221;, then save the hidden file as &#8220;secret.jpg&#8221;:</p>
<figure style="width: 534px" class="wp-caption alignnone"><a href="https://alpinesecurity.com/wp-content/uploads/2020/02/saving-hidden-file.jpg"><img loading="lazy" decoding="async" src="https://alpinesecurity.com/wp-content/uploads/2020/02/saving-hidden-file.jpg" alt=" Saving the hidden file as " width="534" height="383" /></a><figcaption class="wp-caption-text">Saving the hidden file as &#8220;secret.jpg&#8221; in JPHS for Windows</figcaption></figure>
<p>&nbsp;</p>
<p class="" style="white-space: pre-wrap;">Verify the &#8220;secret.jpg&#8221; file is the same as the &#8220;kitten.jpg&#8221; file by opening &#8220;secret.jpg&#8221;.</p>
<figure style="width: 564px" class="wp-caption alignnone"><a href="https://alpinesecurity.com/wp-content/uploads/2020/02/secret.jpg"><img loading="lazy" decoding="async" src="https://alpinesecurity.com/wp-content/uploads/2020/02/secret.jpg" alt=" The extracted image" width="564" height="655" /></a><figcaption class="wp-caption-text">The extracted &#8220;secret.jpg&#8221; is the same as &#8220;kitten.jpg&#8221;. Our steganography example worked!</figcaption></figure>
<p>&nbsp;</p>
<p class="" style="white-space: pre-wrap;">To validate which image pixels JPHS for Windows modified to hide the image in the cover image, you can use Beyond Compare to visually depict the differences. Download and install <a href="http://www.scootersoftware.com/" target="_blank" rel="noopener noreferrer">Beyond Compare</a>.  If you receive an &#8220;Error creating registry key:&#8221; you need to install as an Administrator.</p>
<p class="" style="white-space: pre-wrap;">Run Beyond Compare. On the left side, select &#8220;New&#8221;, the double-click &#8220;Picture Compare&#8221;:</p>
<figure style="width: 279px" class="wp-caption alignnone"><a href="https://alpinesecurity.com/wp-content/uploads/2020/02/beyond-compare-picture-compare.jpg"><img loading="lazy" decoding="async" src="https://alpinesecurity.com/wp-content/uploads/2020/02/beyond-compare-picture-compare.jpg" alt=" Double-click Picture Compare " width="279" height="312" /></a><figcaption class="wp-caption-text">Double-click Picture Compare</figcaption></figure>
<p>&nbsp;</p>
<p class="" style="white-space: pre-wrap;">Open the original picture (background.jpg) on the left window in Beyond Compare and open the steg&#8217;d picture (bridge.jpg) on the right window.  The comparison should be in the bottom window:</p>
<figure style="width: 1057px" class="wp-caption alignnone"><a href="https://alpinesecurity.com/wp-content/uploads/2020/02/beyond-comparison-pixel-differences.jpg"><img loading="lazy" decoding="async" src="https://alpinesecurity.com/wp-content/uploads/2020/02/beyond-comparison-pixel-differences.jpg" alt=" One example of where the pixels differ is shown above - the pixel on the left has RGB:47,109,184, on the right it is RGB:47,109,186 " width="1057" height="801" /></a><figcaption class="wp-caption-text">One example of where the pixels differ is shown above &#8211; the pixel on the left has RGB:47,109,184, on the right it is RGB:47,109,186</figcaption></figure>
<p>&nbsp;</p>
<h2 style="white-space: pre-wrap;">Resources</h2>
<p class="" style="white-space: pre-wrap;">Files used/referenced in this blog:</p>
<ul data-rte-list="default">
<li>
<p class="" style="white-space: pre-wrap;">JPHS for Windows (This application is included in the jphs_05.zip)</p>
</li>
<li>
<p class="" style="white-space: pre-wrap;"><a href="https://alpinesecurity.com/wp-content/uploads/2020/02/background.jpg" target="_blank" rel="noopener noreferrer">background.jpg</a></p>
</li>
<li>
<p class="" style="white-space: pre-wrap;"><a href="https://alpinesecurity.com/wp-content/uploads/2020/02/kitten.jpg" target="_blank" rel="noopener noreferrer">kitten.jpg</a></p>
</li>
<li>
<p class="" style="white-space: pre-wrap;"><a href="//alpinesecurity.wpengine.com/wp-content/uploads/2020/02/bridge.jpg" target="_blank" rel="noopener noreferrer">bridge.jpg</a></p>
</li>
<li>
<p class="" style="white-space: pre-wrap;"><a href="https://alpinesecurity.com/wp-content/uploads/2020/02/secret-1.jpg" target="_blank" rel="noopener noreferrer">secret.jpg</a></p>
</li>
</ul>
<div class=" summary-block-wrapper summary-block-collection-type-blog summary-block-setting-text-size-small summary-block-setting-text-align-left summary-block-setting-design-carousel summary-block-setting-design-list-thumbnail-left summary-block-setting-metadata-position-below-content summary-block-setting-primary-metadata-none summary-block-setting-secondary-metadata-none summary-block-setting-show-thumbnail summary-block-setting-show-title summary-block-setting-show-price summary-block-setting-hide-excerpt sqs-gallery-design-carousel ">
<div class="summary-item-list-container sqs-gallery-container">
<div class="summary-item-list sqs-gallery">
<div class=" summary-item summary-item-record-type-text sqs-gallery-design-carousel-slide summary-item-has-thumbnail summary-item-has-excerpt summary-item-has-cats summary-item-has-tags summary-item-has-author summary-item-has-comments-enabled ">
<div class="summary-content sqs-gallery-meta-container"><!-- Metadata (Below Content) --></div>
</div>
</div>
</div>
</div>
<div class="summary-metadata-container summary-metadata-container--below-content">
<div class="summary-metadata summary-metadata--primary">Video on this topic:</div>
<div>
<p><iframe title="Steganography: Hide Data in a .jpg Image" width="500" height="281" src="https://www.youtube.com/embed/Iepp_B__968?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></p>
</div>
</div>
<div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='3 Steps to Hide Data in an Image Using Steganography' data-link='https://christianespinosa.com/blog/3-steps-to-hide-data-in-an-image-using-steganography/' data-app-id-name='category_below_content'></div><div style='display:none;' class='shareaholic-canvas' data-app='recommendations' data-title='3 Steps to Hide Data in an Image Using Steganography' data-link='https://christianespinosa.com/blog/3-steps-to-hide-data-in-an-image-using-steganography/' data-app-id-name='category_below_content'></div><p>The post <a href="https://christianespinosa.com/blog/3-steps-to-hide-data-in-an-image-using-steganography/">3 Steps to Hide Data in an Image Using Steganography</a> appeared first on <a href="https://christianespinosa.com">Christian Espinosa</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://christianespinosa.com/blog/3-steps-to-hide-data-in-an-image-using-steganography/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
