<?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>Ionut's WebSpace &#187; Cryptography</title>
	<atom:link href="http://www.vioan.ro/wp/category/cryptography/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vioan.ro/wp</link>
	<description>Exploring Creativity Is My Passion</description>
	<lastBuildDate>Wed, 05 Oct 2011 14:28:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Encrypting External HDD with LUKS</title>
		<link>http://www.vioan.ro/wp/2009/03/28/encrypting-external-hdd-with-luks/</link>
		<comments>http://www.vioan.ro/wp/2009/03/28/encrypting-external-hdd-with-luks/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 20:21:14 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[luks]]></category>
		<category><![CDATA[opensuse]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=367</guid>
		<description><![CDATA[


I am using OpenSUSE on my main computers, so LUKS is a good option to encrypt my external hdd. I can use Truecrypt if I want to use the hdd with mac or windows, but here is not the case. You can also use LUKS under windows with FreeOTFE. 
Here are the steps to encrypt [...]]]></description>
			<content:encoded><![CDATA[<p>I am using OpenSUSE on my main computers, so <a href="http://en.wikipedia.org/wiki/LUKS">LUKS</a> is a good option to encrypt my external hdd. I can use <a href="http://www.vioan.ro/wp/2009/03/26/my-usb-memory-stick-companion/">Truecrypt</a> if I want to use the hdd with mac or windows, but here is not the case. You can also use LUKS under windows with <a href="http://en.wikipedia.org/wiki/FreeOTFE">FreeOTFE</a>. </p>
<p>Here are the steps to encrypt the hdd:</p>
<p>1. be sure that the device is not part of filesystem</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdd1</pre></td></tr></table></div>

<p>2. Option 1: write some random data on hdd if you had critical files before</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#slow method to fill hdd with semi-random data</span>
<span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;"><span style="color: #000000; font-weight: bold;">if</span></span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdd1</pre></td></tr></table></div>

<p>3. Option 2:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#use next two commands to fill the hdd with &quot;zero&quot; data, much faster</span>
<span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;"><span style="color: #000000; font-weight: bold;">if</span></span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdd1 <span style="color: #007800;">count</span>=<span style="color: #000000;">2</span> <span style="color: #007800;">bs</span>=1M
<span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;"><span style="color: #000000; font-weight: bold;">if</span></span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdd1</pre></td></tr></table></div>

<p>3. start the encryption setup</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">cryptsetup <span style="color: #660033;">-v</span> <span style="color: #660033;">--key-size</span> <span style="color: #000000;">256</span> luksFormat <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdd1
cryptsetup luksDump <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdd1  <span style="color: #666666; font-style: italic;">#details for encrypted partition</span>
cryptsetup luksOpen <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdd1 buffalo</pre></td></tr></table></div>

<p>4. format hdd as ext3</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>mkfs.ext3 <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>buffalo</pre></td></tr></table></div>

<p>5. mount the encrypted hdd</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>buffalo <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>buffalo</pre></td></tr></table></div>

<p>6. add the entry in /etc/fstab</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>buffalo     <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>buffalo      ext3    acl,user_xattr        <span style="color: #000000;">1</span> <span style="color: #000000;">2</span></pre></td></tr></table></div>

<p>7. Optional step: try <strong>tune2fs -L MYLABEL /dev/mapper/buffalo</strong> if you want a nice label for your hdd.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2009/03/28/encrypting-external-hdd-with-luks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Truecrypt and ext2ifs on Vista</title>
		<link>http://www.vioan.ro/wp/2009/03/27/truecrypt-and-ext2ifs-on-vista/</link>
		<comments>http://www.vioan.ro/wp/2009/03/27/truecrypt-and-ext2ifs-on-vista/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 22:12:20 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[ext2ifs]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=346</guid>
		<description><![CDATA[When I built my USB Memory Stick Companion I could not mount the encrypted volume with Truecrypt on Vista, every time I got a &#8220;nice&#8221; blue screen. So, after some search on google I found that the problem is a compatibility issue between  Truecrypt and Ext2ifs, but a simple update for Ext2ifs to the latest [...]]]></description>
			<content:encoded><![CDATA[<p>When I built my <a href="http://www.vioan.ro/wp/2009/03/26/my-usb-memory-stick-companion/">USB Memory Stick Companion</a> I could not mount the encrypted volume with Truecrypt on Vista, every time I got a &#8220;nice&#8221; blue screen. So, after some search on google I found that the problem is a compatibility issue between  Truecrypt and <a href="http://www.fs-driver.org/">Ext2ifs</a>, but a simple update for Ext2ifs to the latest version (1.11a), solved the problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2009/03/27/truecrypt-and-ext2ifs-on-vista/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My USB Memory Stick Companion</title>
		<link>http://www.vioan.ro/wp/2009/03/26/my-usb-memory-stick-companion/</link>
		<comments>http://www.vioan.ro/wp/2009/03/26/my-usb-memory-stick-companion/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 21:53:06 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[SciComputing]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[portable]]></category>
		<category><![CDATA[rescue]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=343</guid>
		<description><![CDATA[I have a Kingston Data Traveler 4 GB USB Drive, and a few days ago I decided to use it also as a rescue boot device (to be bootable in order to recover data when needed), as storage device (to move around some files, used on windows, mac, linux, freebsd), to have on it some [...]]]></description>
			<content:encoded><![CDATA[<p>I have a Kingston Data Traveler 4 GB USB Drive, and a few days ago I decided to use it also as a rescue boot device (to be bootable in order to recover data when needed), as storage device (to move around some files, used on windows, mac, linux, freebsd), to have on it some personal files which I would like to be encrypted (for example: my ssh private keys, my bookmarks, my passwords, &#8230;), but also to have with me some applications which I use day by day (firefox, thunderbird, keypass, &#8230;).</p>
<p>So here is what I did:</p>
<p>As filesystem I used Fat32. I installed <a href="http://www.sysresccd.org/Main_Page">System RescueCD</a> so I have a bootable linux distro with a lot of useful utilities like Partimage, GNU Parted, TestDisk, kernel for i386 and also for x86-64, &#8230; The instructions to install it on fat32 filesystem are here: <a href="http://www.sysresccd.org/Sysresccd-manual-en_How_to_install_SystemRescueCd_on_an_USB-stick">Installation On USB Memory Stick</a>, I used &#8220;Instalation from Windows&#8221; part.</p>
<p>Next step was to install <a href="http://www.truecrypt.org/">Truecrypt</a> for windows in portable mode, a step by step guide how to do it, is available <a href="http://www.makeuseof.com/tag/encrypt-your-usb-stick-with-truecrypt-60/">here</a>, to be able to open my encrypted volume.</p>
<p>Now I can create an encrypted volume, using truecrypt, where we store all my personal files, let&#8217;s say 2 giga.</p>
<p>In that encrypted volume I also installed <a href="http://portableapps.com/">PortableApps Suite</a> and beeing a LaTeX user I also included <a href="http://www.exomatik.net/LaTeX/USBTeXEnglish">USBTeX.</a></p>
<p>Ok, now I still have space to store some useful small iso images, like Clonezilla, Hiren Boot CD, Acronis True Image BootCD.</p>
<p>That&#8217;s my setup for USB Memory Stick, I have it with me all the time, I can use it on any system, mac, windows, linux, I have a bootable linux disto on it, and also my personal files encrypted with some useful software. Maybe I should mention that Portable Apps Suite works well also with wine on linux.</p>
<p>I did a <strong>dd</strong> copy of my complete usb stick configuration/setup, immediately after I finished to install everything I needed, because if I will lose it, then to be able to recover everything quickly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2009/03/26/my-usb-memory-stick-companion/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Set up a wireless network in the new house</title>
		<link>http://www.vioan.ro/wp/2008/03/23/set-up-a-wireless-network-in-the-new-house/</link>
		<comments>http://www.vioan.ro/wp/2008/03/23/set-up-a-wireless-network-in-the-new-house/#comments</comments>
		<pubDate>Sun, 23 Mar 2008 18:20:33 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Wireless]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/2008/03/23/set-up-a-wireless-network-in-the-new-house/</guid>
		<description><![CDATA[As you read in my previous post , we arrived in UK already. I have internet connection at work, but I need also at home internet, because during the evening I am reading news, emails, messenger, &#8230;. I prefer now, to set up a wirelesss network for my home, because I don&#8217;t like to have [...]]]></description>
			<content:encoded><![CDATA[<p>As you read in my <a href="http://www.vioan.ro/wp/2008/03/07/already-in-loughborough-uk/">previous post</a> , we arrived in UK already. I have internet connection at work, but I need also at home internet, because during the evening I am reading news, emails, messenger, &#8230;. I prefer now, to set up a wirelesss network for my home, because I don&#8217;t like to have cables in the house.</p>
<p>My computers are <a href="http://www.vioan.ro/wp/2007/10/12/what-i-am-using-my-computers/">here</a>. For Amilo notebook I had already a PCMCIA card &#8220;<a href="http://www.netgear.com/Products/Adapters/SuperGWirelessAdapters/WG511T.aspx">Netgear WG511T</a>&#8221; which is working fine on Windows XP, FreeBSD and Linux, Vaio notebook come with an integrated wifi card, I have installed on it Vista and I don&#8217;t have problems with the wireless card, so what I needed it was a PCI/USB wireless card for the desktop computer which has to work with Linux, Windows and also *BSD operating system and also a wireless router.</p>
<p>Surfing on the internet, reading opinions and different forums, I decided to buy a <a href="http://en.wikipedia.org/wiki/WRT54G">Linksys WRT54G</a> wireless broadband router, maybe in the future I will try to install  linux on it (<a href="http://openwrt.org/">openwrt</a> or something similar), and as PCI card I took <a href="http://www.edimax.com/en/produce_detail.php?pd_id=1&amp;pl1_id=1&amp;pl2_id=44">Edimax EW-7128G</a> wireless adapter which it seems that is working fine with Linux, Windows and FreeBSD/OpenBSD.</p>
<p>The router was very easy to set up and is working fine. I had some problems in installing the PCI wireless card on my Opensuse 10.3 box, finally it is working, I will write here a short tutorial in the next post.</p>
<p>I am really happy with my new wireless network.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2008/03/23/set-up-a-wireless-network-in-the-new-house/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>SOCKS proxy with SSH</title>
		<link>http://www.vioan.ro/wp/2008/03/09/socks-proxy-with-ssh/</link>
		<comments>http://www.vioan.ro/wp/2008/03/09/socks-proxy-with-ssh/#comments</comments>
		<pubDate>Sun, 09 Mar 2008 21:15:29 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/2008/03/09/socks-proxy-with-ssh/</guid>
		<description><![CDATA[Today,  I tried to connect to irc network but I realized that the ports are blocked. Using ssh -X you can forward programs on your computer but if you have a slow connection it doesn&#8217;t work very well. Reading the manual for ssh I found that it is possible to use -D option to [...]]]></description>
			<content:encoded><![CDATA[<p>Today,  I tried to connect to irc network but I realized that the ports are blocked. Using <em>ssh -X</em> you can forward programs on your computer but if you have a slow connection it doesn&#8217;t work very well. Reading the manual for <em>ssh</em> I found that it is possible to use -D option to create a SOCKS proxy. From manual page:</p>
<pre><strong>-D</strong> [<em>bind_address</em>:]<em>port</em></pre>
<pre>
Specifies a local ``dynamic'' application-level port forwarding.
This works by allocating a socket to listen to <em>port</em> on the local
side, optionally bound to the specified <em>bind_address</em>.  Whenever a
connection is made to this port, the connection is forwarded over
the secure channel, and the application protocol is then used to
determine where to connect to from the remote machine.  Currently
the SOCKS4 and SOCKS5 protocols are supported, and <strong>ssh</strong> will act
as a SOCKS server.  Only root can forward privileged ports.  Dy-
namic port forwardings can also be specified in the configuration
file.</pre>
<p>So the magic command is (you need a ssh account on server):</p>
<p><code>$ssh -D 10000 user@ssh-server</code></p>
<p>this will create a SOCKS proxy on port “10000″ of your computer. This is a nice tunnel to the server. Now, all you need to do is to set in xchat to use a SOCKS proxy. The proxy is, “localhost”, with the port 10000. That&#8217;s all, the xchat works and you can spend a lot of time on irc.</p>
<p>Also you can use this kind of tunnel for safe browsing. You have to set your preferences in Firefox to use a SOCKS proxy.  When you browse, all the connections you make to websites will seem to originate from the server to which you SSH-ed. In addition, all outgoing and incoming data for the browsing session will be encrypted since it passes through the SSH connection. I am using this when I need access to some sites and I don&#8217;t have access from home, so I make the ssh-tunnel to university and then I can access them.</p>
<p>There are also applications (email clients) which may also support SOCKS proxy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2008/03/09/socks-proxy-with-ssh/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Choose the DVD ripper that&#8217;s right for you</title>
		<link>http://www.vioan.ro/wp/2008/03/08/choose-the-dvd-ripper-thats-right-for-you/</link>
		<comments>http://www.vioan.ro/wp/2008/03/08/choose-the-dvd-ripper-thats-right-for-you/#comments</comments>
		<pubDate>Sat, 08 Mar 2008 17:50:01 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/2008/03/08/choose-the-dvd-ripper-thats-right-for-you/</guid>
		<description><![CDATA[&#8230; a very nice article about DVD ripping available at linux.com. Here is only the final conclusion:
&#8220;Each DVD ripper has its strengths and weaknesses. If you want to use a ripper without libdvdcss2 (which has questionable legality in some countries), HandBrake is your only option. If you don&#8217;t mind installing the extra library, dvd::rip (for [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230; a very nice article about DVD ripping available at <a href="http://www.linux.com/feature/128105">linux.com</a>. Here is only the final conclusion:</p>
<p>&#8220;Each DVD ripper has its strengths and weaknesses. If you want to use a ripper without libdvdcss2 (which has questionable legality in some countries), HandBrake is your only option. If you don&#8217;t mind installing the extra library, dvd::rip (for hard-core users) and Thoggen (for basic users) are the best options. And if you&#8217;re just ripping old DVDs you burned yourself, give the speedy VLC or the powerful AcidRip a try.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2008/03/08/choose-the-dvd-ripper-thats-right-for-you/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Truecrypt 5.0 on OpenSuse 10.3</title>
		<link>http://www.vioan.ro/wp/2008/02/10/truecrypt-50-on-opensuse-103/</link>
		<comments>http://www.vioan.ro/wp/2008/02/10/truecrypt-50-on-opensuse-103/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 18:27:45 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/2008/02/10/truecrypt-50-on-opensuse-103/</guid>
		<description><![CDATA[I tried a few days ago to install the new version of truecrypt, 5.0, on my system. So, I downloaded the sources and I compiled them. It didn&#8217;t work. Today I asked for help  on #suse irc channel, there are nice guys ready to help you  if you need. A link where is [...]]]></description>
			<content:encoded><![CDATA[<p>I tried a few days ago to install the new version of <a href="http://www.truecrypt.org/">truecrypt</a>, 5.0, on my system. So, I downloaded the sources and I compiled them. It didn&#8217;t work. Today I asked for help  on #suse irc channel, there are nice guys ready to help you  if you need. A link where is explained what you have to do, the patch,  in order to install it, <a href="http://x.sodpit.com/truecrypt.htm">here</a> . Now you have installed truecrypt also with graphical interface <img src='http://www.vioan.ro/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .  A screenshot:</p>
<p><img src="http://www.vioan.ro/wp/wp-content/uploads/2008/02/truecrypt50_small.png" alt="truecrypt50_small.png" /></p>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2008/02/10/truecrypt-50-on-opensuse-103/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

