<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>The Kitchen in the Zoo - encryption tag</title>
  <link>http://blog.maxant.co.uk:80/pebble/tags/encryption/</link>
  <description>&lt;small&gt;A blog where Ant writes about anything he finds interesting! &lt;a href=&#039;http://www.linkedin.com/in/maxant&#039;&gt;&lt;font color=&#039;white&#039;&gt;Who is Ant?&lt;/font&gt;&lt;/a&gt;      &lt;a href=&#039;/pebble/pages/copyright.html&#039;&gt;&lt;font color=&#039;white&#039;&gt;Copyright 2005-2012 Ant Kutschera&lt;/font&gt;&lt;/a&gt;&lt;/small&gt;</description>
  <language>en</language>
  <copyright>Ant Kutschera</copyright>
  <lastBuildDate>Thu, 10 May 2012 20:07:00 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  
  <item>
    <title>Image Encryption II - Steganography</title>
    <link>http://blog.maxant.co.uk:80/pebble/2007/07/19/1184876280000.html</link>
    
      
        <description>
          &lt;p&gt;See &lt;a href=&#034;2007/07/13/1184277660000.html&#034;&gt;the old post.&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
Apparently this is called steganography and is a well researched field! That just proves you how hard it is to invent anything new. Anyway, I have optimised the algorithm and build a website dedicated to it: &lt;a target=&#034;_new&#034; href=&#034;http://stega.maxant.co.uk&#034;&gt;http://stega.maxant.co.uk&lt;/a&gt;.&lt;/p&gt;&lt;div class=&#034;tags&#034;&gt;&lt;span&gt;Social Bookmarks : &lt;/span&gt;&amp;nbsp;&lt;a href=&#034;http://slashdot.org/bookmark.pl?url=http://blog.maxant.co.uk:80/pebble/2007/07/19/1184876280000.html&amp;amp;title=Image+Encryption+II+-+Steganography&#034; target=&#034;_blank&#034; title=&#034;Add this post to Slash Dot&#034;&gt;&lt;img src=&#034;common/images/slashdot.png&#034; alt=&#034;Add this post to Slashdot&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://digg.com/submit?url=http://blog.maxant.co.uk:80/pebble/2007/07/19/1184876280000.html&amp;amp;title=Image+Encryption+II+-+Steganography&#034; target=&#034;_blank&#034; title=&#034;Digg this post&#034;&gt;&lt;img src=&#034;common/images/digg.png&#034; alt=&#034;Add this post to Digg&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://reddit.com/submit?url=http://blog.maxant.co.uk:80/pebble/2007/07/19/1184876280000.html&amp;amp;title=Image+Encryption+II+-+Steganography&#034; target=&#034;_blank&#034; title=&#034;Add this post to Reddit&#034;&gt;&lt;img src=&#034;common/images/reddit.png&#034; alt=&#034;Add this post to Reddit&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://del.icio.us/post?url=http://blog.maxant.co.uk:80/pebble/2007/07/19/1184876280000.html&amp;amp;title=Image+Encryption+II+-+Steganography&#034; target=&#034;_blank&#034; title=&#034;Save this post to Del.icio.us&#034;&gt;&lt;img src=&#034;common/images/delicious.png&#034; alt=&#034;Add this post to Delicious&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://www.stumbleupon.com/submit?url=http://blog.maxant.co.uk:80/pebble/2007/07/19/1184876280000.html&amp;amp;title=Image+Encryption+II+-+Steganography&#034; target=&#034;_blank&#034; title=&#034;Stumble this post&#034;&gt;&lt;img src=&#034;common/images/stumbleupon.png&#034; alt=&#034;Add this post to Stumble it&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://www.google.com/bookmarks/mark?op=edit&amp;amp;bkmk=http://blog.maxant.co.uk:80/pebble/2007/07/19/1184876280000.html&amp;amp;title=Image+Encryption+II+-+Steganography&#034; target=&#034;_blank&#034; title=&#034;Add this post to Google&#034;&gt;&lt;img src=&#034;common/images/google.png&#034; alt=&#034;Add this post to Google&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://technorati.com/faves?add=http://blog.maxant.co.uk:80/pebble/2007/07/19/1184876280000.html&#034; target=&#034;_blank&#034; title=&#034;Add this post to Technorati&#034;&gt;&lt;img src=&#034;common/images/technorati.png&#034; alt=&#034;Add this post to Technorati&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://www.bloglines.com/sub/http://blog.maxant.co.uk:80/pebble/2007/07/19/1184876280000.html&#034; target=&#034;_blank&#034; title=&#034;Add this post to Bloglines&#034;&gt;&lt;img src=&#034;common/images/bloglines.png&#034; alt=&#034;Add this post to Bloglines&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://www.facebook.com/share.php?u=http://blog.maxant.co.uk:80/pebble/2007/07/19/1184876280000.html&#034; target=&#034;_blank&#034; title=&#034;Add this post to Facebook&#034;&gt;&lt;img src=&#034;common/images/facebook.png&#034; alt=&#034;Add this post to Facebook&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://www.furl.net/storeIt.jsp?u=http://blog.maxant.co.uk:80/pebble/2007/07/19/1184876280000.html&amp;amp;t=Image+Encryption+II+-+Steganography&#034; target=&#034;_blank&#034; title=&#034;Add this post to Furl&#034;&gt;&lt;img src=&#034;common/images/furl.png&#034; alt=&#034;Add this post to Furl&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;https://favorites.live.com/quickadd.aspx?mkt=en-us&amp;amp;url=http://blog.maxant.co.uk:80/pebble/2007/07/19/1184876280000.html&amp;amp;title=Image+Encryption+II+-+Steganography&#034; target=&#034;_blank&#034; title=&#034;Add this post to Windows Live&#034;&gt;&lt;img src=&#034;common/images/windowslive.png&#034; alt=&#034;Add this post to Windows Live&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;amp;u=http://blog.maxant.co.uk:80/pebble/2007/07/19/1184876280000.html&amp;amp;t=Image+Encryption+II+-+Steganography&#034; target=&#034;_blank&#034; title=&#034;Add this post to Yahoo!&#034;&gt;&lt;img src=&#034;common/images/yahoo.png&#034; alt=&#034;Add this post to Yahoo!&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&lt;/div&gt;
        </description>
      
      
    
    
    
    <comments>http://blog.maxant.co.uk:80/pebble/2007/07/19/1184876280000.html#comments</comments>
    <guid isPermaLink="true">http://blog.maxant.co.uk:80/pebble/2007/07/19/1184876280000.html</guid>
    <pubDate>Thu, 19 Jul 2007 20:18:00 GMT</pubDate>
  </item>
  
  <item>
    <title>Image Encryption</title>
    <link>http://blog.maxant.co.uk:80/pebble/2007/07/13/1184277660000.html</link>
    
      
        <description>
          &lt;p&gt;&lt;strong&gt;Problem&lt;/strong&gt;&lt;br /&gt;
The trouble with encrypting documents is that its quite obvious that they have been encrypted which makes people want to decrypt them.&lt;br /&gt;
&lt;br /&gt;
So what about some kind of sexy algorithm that encodes a message within a picture? If the picture only gets slightly changed, then no one will ever realise it contains a secret message, since it looks to all intents and purposes like its a genuine picture.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Analysis&lt;/strong&gt;&lt;br /&gt;
So, an evenings hacking later and I&#039;ve come up with an algorithm that does it. The program takes an image file (gif, jpeg, etc) and outputs a bitmap (it cannot be output to a format that compresses with loss like JPEG, otherwise its not possible to decrypt the message since what gets saved is saved with bits lost).&lt;br /&gt;
&lt;br /&gt;
Here is an example of a red image that has been modified to contain a message: &lt;br /&gt;
&lt;br /&gt;
&lt;img alt=&#034;&#034; src=&#034;images/encryption_output.bmp&#034; /&gt; &lt;br /&gt;
&lt;br /&gt;
OK, if you look close (see below which is zoomed in) you can see the modified dots. But its just an example.  &lt;br /&gt;
&lt;br /&gt;
&lt;img width=&#034;400&#034; alt=&#034;&#034; src=&#034;images/encryption_output.bmp&#034; /&gt; &lt;br /&gt;
&lt;br /&gt;
So here is a photo that has been modified to contain a different secret message:&lt;br /&gt;
&lt;br /&gt;
&lt;img alt=&#034;&#034; src=&#034;images/encryption_output1.bmp&#034; /&gt; &lt;br /&gt;
&lt;br /&gt;
Again, without zooming in, its hard to see the changes. Below is a zoomed in version. You can see the changes as speckled dots. &lt;br /&gt;
&lt;br /&gt;
&lt;img alt=&#034;&#034; src=&#034;images/encryption_output1.jpg&#034; /&gt; &lt;br /&gt;
&lt;br /&gt;
The algorithm has been tuned to try and match the changes to the pixels around the changed pixel. If the surrounding area is blue, the change will be blue, whereas if the area around the change is red, the result will be a red pixel. You should be able to see this quite easily. One thing I found was that its not so good if the image contains lots of white or black. The algorithm prefers red/green/blue images. &lt;br /&gt;
&lt;br /&gt;
So if we use a standard photo editing program and add some noise (uniform, 20% in the following case), you really cannot see the changes that the algorithm has made. It simply looks like a badly taken picture. &lt;br /&gt;
&lt;br /&gt;
&lt;img alt=&#034;&#034; src=&#034;images/encryption_output2.bmp&#034; /&gt; &lt;br /&gt;
&lt;br /&gt;
It&#039;s even better if you use some kind of effect on the image:&lt;br /&gt;
&lt;br /&gt;
&lt;img alt=&#034;&#034; src=&#034;images/encryption_output3.bmp&#034; /&gt; &lt;br /&gt;
&lt;br /&gt;
During encryption I provide a pass phrase that is used to encrypt the message. The text is encrypted before being inserted into the image, so effectively it has been doubly encrypted. There is also a parameter that is used to specify how close together each changed pixel is, so that either all changes are to a single region, or all changes are spread out throughout the image.  &lt;br /&gt;
&lt;br /&gt;
In these examples only about a thousandth of the original image has been changed. With rough images, there would be no problem changing several percent of the image. But what is sure is that the resulting image (as in the encrypted hidden file) would be 20, 40 or even 100 times as large as the file or message being encrypted. &lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Practical Applications&lt;/strong&gt;&lt;br /&gt;
The best application is simply put, file encryption, hiding the input within an image so its harder to find by prying eyes. The above example shows how text messages have been encrypted, but there is no reason this cannot be extended to files. How about a Web Service or Web Application that anyone could use to encrypt their secrets? Potentially coming up soon...&lt;br /&gt;
&lt;br /&gt;
I&#039;m quite sure this has been done before, but I just wondered how easy it would be... and at first glance, it seems not that hard.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re interested in its use, &lt;a href=&#034;mailto:encryption@maxant.co.uk&#034;&gt;contact me&lt;/a&gt;. &lt;br /&gt;
&lt;br /&gt;
And as enticement to crack this algorithm, how about 100 english pounds to the first person to email me the message that&#039;s encrypted in the  &lt;a href=&#034;images/encryption_output2.bmp&#034;&gt;speckled version of the picture of the clouds&lt;/a&gt;? &lt;br /&gt;
&lt;br /&gt;
**** UPDATE ****&lt;br /&gt;
&lt;br /&gt;
Apparently this is called steganography and is a well researched field! That just proves you how hard it is to invent anything new. Anyway, I have optimised the algorithm and build a website dedicated to it: &lt;a target=&#034;_new&#034; href=&#034;http://stega.maxant.co.uk&#034;&gt;http://stega.maxant.co.uk&lt;/a&gt;.&lt;/p&gt;&lt;div class=&#034;tags&#034;&gt;&lt;span&gt;Social Bookmarks : &lt;/span&gt;&amp;nbsp;&lt;a href=&#034;http://slashdot.org/bookmark.pl?url=http://blog.maxant.co.uk:80/pebble/2007/07/13/1184277660000.html&amp;amp;title=Image+Encryption&#034; target=&#034;_blank&#034; title=&#034;Add this post to Slash Dot&#034;&gt;&lt;img src=&#034;common/images/slashdot.png&#034; alt=&#034;Add this post to Slashdot&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://digg.com/submit?url=http://blog.maxant.co.uk:80/pebble/2007/07/13/1184277660000.html&amp;amp;title=Image+Encryption&#034; target=&#034;_blank&#034; title=&#034;Digg this post&#034;&gt;&lt;img src=&#034;common/images/digg.png&#034; alt=&#034;Add this post to Digg&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://reddit.com/submit?url=http://blog.maxant.co.uk:80/pebble/2007/07/13/1184277660000.html&amp;amp;title=Image+Encryption&#034; target=&#034;_blank&#034; title=&#034;Add this post to Reddit&#034;&gt;&lt;img src=&#034;common/images/reddit.png&#034; alt=&#034;Add this post to Reddit&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://del.icio.us/post?url=http://blog.maxant.co.uk:80/pebble/2007/07/13/1184277660000.html&amp;amp;title=Image+Encryption&#034; target=&#034;_blank&#034; title=&#034;Save this post to Del.icio.us&#034;&gt;&lt;img src=&#034;common/images/delicious.png&#034; alt=&#034;Add this post to Delicious&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://www.stumbleupon.com/submit?url=http://blog.maxant.co.uk:80/pebble/2007/07/13/1184277660000.html&amp;amp;title=Image+Encryption&#034; target=&#034;_blank&#034; title=&#034;Stumble this post&#034;&gt;&lt;img src=&#034;common/images/stumbleupon.png&#034; alt=&#034;Add this post to Stumble it&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://www.google.com/bookmarks/mark?op=edit&amp;amp;bkmk=http://blog.maxant.co.uk:80/pebble/2007/07/13/1184277660000.html&amp;amp;title=Image+Encryption&#034; target=&#034;_blank&#034; title=&#034;Add this post to Google&#034;&gt;&lt;img src=&#034;common/images/google.png&#034; alt=&#034;Add this post to Google&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://technorati.com/faves?add=http://blog.maxant.co.uk:80/pebble/2007/07/13/1184277660000.html&#034; target=&#034;_blank&#034; title=&#034;Add this post to Technorati&#034;&gt;&lt;img src=&#034;common/images/technorati.png&#034; alt=&#034;Add this post to Technorati&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://www.bloglines.com/sub/http://blog.maxant.co.uk:80/pebble/2007/07/13/1184277660000.html&#034; target=&#034;_blank&#034; title=&#034;Add this post to Bloglines&#034;&gt;&lt;img src=&#034;common/images/bloglines.png&#034; alt=&#034;Add this post to Bloglines&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://www.facebook.com/share.php?u=http://blog.maxant.co.uk:80/pebble/2007/07/13/1184277660000.html&#034; target=&#034;_blank&#034; title=&#034;Add this post to Facebook&#034;&gt;&lt;img src=&#034;common/images/facebook.png&#034; alt=&#034;Add this post to Facebook&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://www.furl.net/storeIt.jsp?u=http://blog.maxant.co.uk:80/pebble/2007/07/13/1184277660000.html&amp;amp;t=Image+Encryption&#034; target=&#034;_blank&#034; title=&#034;Add this post to Furl&#034;&gt;&lt;img src=&#034;common/images/furl.png&#034; alt=&#034;Add this post to Furl&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;https://favorites.live.com/quickadd.aspx?mkt=en-us&amp;amp;url=http://blog.maxant.co.uk:80/pebble/2007/07/13/1184277660000.html&amp;amp;title=Image+Encryption&#034; target=&#034;_blank&#034; title=&#034;Add this post to Windows Live&#034;&gt;&lt;img src=&#034;common/images/windowslive.png&#034; alt=&#034;Add this post to Windows Live&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&#034;http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;amp;u=http://blog.maxant.co.uk:80/pebble/2007/07/13/1184277660000.html&amp;amp;t=Image+Encryption&#034; target=&#034;_blank&#034; title=&#034;Add this post to Yahoo!&#034;&gt;&lt;img src=&#034;common/images/yahoo.png&#034; alt=&#034;Add this post to Yahoo!&#034; border=&#034;0&#034; /&gt;&lt;/a&gt;&lt;/div&gt;
        </description>
      
      
    
    
    
    <comments>http://blog.maxant.co.uk:80/pebble/2007/07/13/1184277660000.html#comments</comments>
    <guid isPermaLink="true">http://blog.maxant.co.uk:80/pebble/2007/07/13/1184277660000.html</guid>
    <pubDate>Thu, 12 Jul 2007 22:01:00 GMT</pubDate>
  </item>
  
  </channel>
</rss>

