<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">
<rss version="0.91">
	<channel>
		<language>en_GB</language>
		<title>Articles Tagged with &quot;Crypto&quot;</title>
		<link>http://tobyinkster.co.uk/tag/crypto/</link>
		<description></description>
		<item>
			<title>19/08/2007: TrivialEncoder/0.2</title>
			<link>http://tobyinkster.co.uk/blog/2007/08/19/trivial-encoder/</link>
			<description>&lt;p&gt;An update to my &lt;span class=&quot;caps&quot;&gt;PHP &lt;/span&gt;encryption class. Despite the name, it&amp;#8217;s becoming a pretty sophisticated encyption machine. New encryption algorithms added:&lt;/p&gt;


&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Vigenere_cipher&quot;&gt;Vigener&amp;egrave; cypher&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/One-time_pad&quot;&gt;One-Time Pad&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Superencryption&quot;&gt;Bruce Schneier&amp;#8217;s Superencyption&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Various other methods using the MCrypt library&lt;/li&gt;
&lt;/ul&gt;



&lt;p&gt;The &lt;code class=&quot;php&quot;&gt;TrivialEncoderManager&lt;/code&gt; class has been obsoleted by &lt;code class=&quot;php&quot;&gt;TE_Machine&lt;/code&gt;, an abstract class with several different child classes for encoding, decoding and analysis. &lt;code class=&quot;php&quot;&gt;TE_Machine&lt;/code&gt; has a greatly improved parser for methods, which has made it a lot easier for me to add additional functionality such as the ability to analyse an encryption technique to see how strong it would be, and to check whether the output would be &lt;span class=&quot;caps&quot;&gt;ASCII&lt;/span&gt;-safe. &lt;code class=&quot;php&quot;&gt;TrivialEncoderManager&lt;/code&gt; is still present, but is deprecated and will be removed next release.&lt;/p&gt;</description>
		</item>
		<item>
			<title>01/08/2007: PHP Encryption Class</title>
			<link>http://tobyinkster.co.uk/blog/2007/08/01/php-encryption-class/</link>
			<description>&lt;p&gt;Here&amp;#8217;s a simple &lt;span class=&quot;caps&quot;&gt;PHP &lt;/span&gt;library for encoding and decoding text.&lt;/p&gt;

&lt;p&gt;Examples:&lt;/p&gt;



&lt;pre&gt;&lt;code class=&quot;php&quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php
$trivialencoder_auto&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;FALSE&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;
include&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;'TrivialEncoder.class.php'&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;

&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$manager&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;nbsp;new&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;TrivialEncoderManager&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;
&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$plaintext&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;'Hello&amp;nbsp;world'&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;
&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//&amp;nbsp;Chain&amp;nbsp;together&amp;nbsp;Triple&amp;nbsp;DES,&amp;nbsp;Memfrob&amp;nbsp;and&amp;nbsp;Base64&amp;nbsp;encoding.
//&amp;nbsp;Note:&amp;nbsp;3DES&amp;nbsp;encoding&amp;nbsp;is&amp;nbsp;passed&amp;nbsp;an&amp;nbsp;(optional)&amp;nbsp;key&amp;nbsp;&quot;mysecretkey&quot;.
&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$encoding&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;'3des&amp;nbsp;mysecretkey;memfrob;base64'&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;
&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cyphertext&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$manager&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;encode&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$encoding&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$plaintext&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);
echo&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$manager&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;decode&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$encoding&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$cyphertext&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//&amp;nbsp;Hello&amp;nbsp;world
&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;</description>
		</item>
		<item>
			<title>24/07/2007: Cryptography Challenge</title>
			<link>http://tobyinkster.co.uk/blog/2007/07/24/crypto-challenge/</link>
			<description>&lt;p&gt;Here&amp;#8217;s a challenge. Decrypt&amp;#8230;&lt;/p&gt;

&lt;p&gt;aWt6eWZlaWEKfWJjeWFvcwppa3p5ZmVpYQpvaWJlCmZjZ2sKZmNnawp5&lt;br&gt;
emtpbwpub2Z+awpleWlreApkZXxvZ2hveApvaWJlCmhrZG0KeXpraW8Ka&lt;br&gt;
Wt6eWZlaWEKemt6awppa3p5ZmVpYQpmY2drCm9pYmUKa2Z6YmsKeW&lt;br&gt;
NveHhrCm9pYmUKeXpraW8KZmNnawpvaWJlCmtmemJrCnxjaX5leApvaW&lt;br&gt;
JlCnl6a2lvCmtmemJrCnl6a2lvCmlia3hmY28KZXlpa3gKZ2NhbwpnY2FvCm9&lt;br&gt;
pYmUKZGV8b2dob3gKfmtkbWUKeXpraW8KZXlpa3gKZGV8b2dob3gKeX&lt;br&gt;
praW8KfmtkbWUKZXlpa3gKaHhrfGUKc2tkYW9vCmNkbmNtZQpkZXxvZ2h&lt;br&gt;
veAphY2ZlCnljb3h4awp+a2RtZQpvaWJlCnhlZ29lCnl+ZXoKaWJreGZjbwpl&lt;br&gt;
eWlreAp5fmV6Cn9kY2xleGcKYWNmZQp5emtpbwppYmt4ZmNvCmZjZ2sK&lt;br&gt;
a2Z6YmsKY2RuY21lCmdjYW8KY2RuY21lCmRlfG9naG94Cm1lZmwKeXpra&lt;br&gt;
&lt;span class=&quot;caps&quot;&gt;W8K&lt;/span&gt;aWJreGZjbwp4ZWdvZQpvaWJlCm5vZn5rCmNkbmNtZQp+a2RtZQp5f&lt;br&gt;
mV6&lt;/p&gt;</description>
		</item>
		<item>
			<title>steg-encode.pl</title>
			<link>http://tobyinkster.co.uk/article/steg-encode/</link>
			<description>====&lt;br&gt;
&lt;p&gt;&lt;em class=&quot;software&quot;&gt;steg-encode.pl&lt;/em&gt; is a basic tool for hiding secret messages in images. It comes with a friend: &lt;em class=&quot;software&quot;&gt;steg-decode.pl&lt;/em&gt;.&lt;/p&gt;

&lt;h2&gt;Download&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;/Software/linux/steg/steg-encode.pl&quot;&gt;steg-encode.pl 0.0.1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/Software/linux/steg/steg-decode.pl&quot;&gt;steg-decode.pl 0.0.1&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;Usage Example&lt;/h2&gt;

&lt;p&gt;To hide a message in an image, use the following syntax.&lt;/p&gt;
&lt;p&gt;&lt;kbd&gt;steg-encode.pl image message output&lt;/kbd&gt;&lt;/p&gt;
&lt;p&gt;Output should be to either an uncompressed image file or a non-lossy compressed image file, and should be 24-bit colour. Formats such as &lt;span class=&quot;caps&quot;&gt;PNG &lt;/span&gt;or Windows Bitmap are ideal.&lt;/p&gt;
&lt;p&gt;An example is:&lt;/p&gt;
&lt;p&gt;&lt;kbd&gt;steg-encode.pl &lt;a href=&quot;/Software/linux/steg/example/test-in.png&quot;&gt;test-in.png&lt;/a&gt; &lt;a href=&quot;/Software/linux/steg/example/test-in.txt&quot;&gt;test-in.txt&lt;/a&gt; &lt;a href=&quot;/Software/linux/steg/example/test-out.png&quot;&gt;test-out.png&lt;/a&gt;&lt;/kbd&gt;&lt;/p&gt;

&lt;p&gt;To convert back:&lt;/p&gt;
&lt;p&gt;&lt;kbd&gt;steg-decode.pl image output&lt;/kbd&gt;&lt;/p&gt;
&lt;p&gt;And to&amp;#8230;</description>
		</item>
		<item>
			<title>Cryptography</title>
			<link>http://tobyinkster.co.uk/article/crypto/</link>
			<description>====&lt;br&gt;
&lt;p&gt;This page contains a few things related to cryptography (obscuring information) and steganography (hiding information), including my &lt;a href=&quot;#pgpintro&quot;&gt;introduction to &lt;span class=&quot;caps&quot;&gt;PGP&lt;/span&gt;&lt;/a&gt; and the &lt;a href=&quot;#steg&quot;&gt;steganography challenge&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;You might also be interested in &lt;a href=&quot;steg-encode&quot;&gt;steg-encode.pl&lt;/a&gt;, my attempt at a basic steganography tool.&lt;/p&gt;

&lt;h2 id=&quot;/pgpintro&quot;&gt;An Introduction to &lt;span class=&quot;caps&quot;&gt;PGP&lt;/span&gt;&lt;/h2&gt;

&lt;h3&gt;What is That Mumbo Jumbo at the Bottom of Your Email, Toby?&lt;/h3&gt;
&lt;p&gt;That, my friend, is a &lt;span class=&quot;caps&quot;&gt;PGP &lt;/span&gt;signature. It probably looks something like this:&lt;/p&gt;


&lt;pre&gt;
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE8fU94dS33bVJ0/loRAsznAJ9Xqwgd+n+gAzrmmVZckWPBRenoWACfSp0q
z5Fjj2G+0UoZm6yxOjCWKL0=
=Gc4C
-----END PGP SIGNATURE-----
&lt;/pre&gt;


&lt;p&gt;It is possible that your email client displays it as an attachment. Outlook (and Outlook Express) displays the main body of my messages as an attachment as well. This behaviour is incorrect. (See &amp;lt;a&amp;#8230;</description>
		</item>
		<item>
			<title>A Beginner's Guide to Cyber-Rights</title>
			<link>http://tobyinkster.co.uk/article/cyberrights/</link>
			<description>&lt;p&gt;Learn about your rights online and who is trying to take them away from you!&lt;/p&gt;</description>
		</item>
	</channel>
</rss>
