<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.hermann-uwe.de" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Uwe Hermann - HOWTO: Encrypted USB thumb drives and (USB) hard disks using loop-AES - Comments</title>
 <link>http://www.hermann-uwe.de/blog/howto-encrypted-usb-thumb-drives-and-usb-hard-disks-using-loop-aes</link>
 <description>Comments for &quot;HOWTO: Encrypted USB thumb drives and (USB) hard disks using loop-AES&quot;</description>
 <language>en</language>
<item>
 <title>Encrypted USB thumb drives and (USB) hard disks using loop-AES</title>
 <link>http://www.hermann-uwe.de/blog/howto-encrypted-usb-thumb-drives-and-usb-hard-disks-using-loop-aes#comment-79118</link>
 <description>&lt;p&gt;I feel that dm-crypt  works faster, it is also secure and no way be compared by Loop-Aes.&lt;/p&gt;
</description>
 <pubDate>Fri, 04 Dec 2009 16:48:00 +0100</pubDate>
 <dc:creator>Portable hard drive</dc:creator>
 <guid isPermaLink="false">comment 79118 at http://www.hermann-uwe.de</guid>
</item>
<item>
 <title>Cryptoloop and loop-aes are</title>
 <link>http://www.hermann-uwe.de/blog/howto-encrypted-usb-thumb-drives-and-usb-hard-disks-using-loop-aes#comment-68050</link>
 <description>&lt;p&gt;Cryptoloop and loop-aes are actually two separate projects.&lt;/p&gt;
&lt;p&gt;http://mareichelt.de/pub/notmine/linuxbsd-comparison.html&lt;/p&gt;
&lt;p&gt;Loop-aes is probably more secure than dm-crypt, since loop-aes supports multi-key mode. Dm-crypt is cryptoloop&#039;s successor.&lt;/p&gt;
</description>
 <pubDate>Wed, 18 Feb 2009 00:27:33 +0100</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 68050 at http://www.hermann-uwe.de</guid>
</item>
<item>
 <title>no need for kernel patches</title>
 <link>http://www.hermann-uwe.de/blog/howto-encrypted-usb-thumb-drives-and-usb-hard-disks-using-loop-aes#comment-41089</link>
 <description>&lt;p&gt;loop-aes builds a module by default. there is no need for kernel patches at all.&lt;/p&gt;
</description>
 <pubDate>Sat, 10 Mar 2007 02:27:49 +0100</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 41089 at http://www.hermann-uwe.de</guid>
</item>
<item>
 <title>One should use the more</title>
 <link>http://www.hermann-uwe.de/blog/howto-encrypted-usb-thumb-drives-and-usb-hard-disks-using-loop-aes#comment-3081</link>
 <description>&lt;p&gt;One should use the more secure v3 operating mode of loop-aes  with gpg-encrypted keyfiles instead of the single-key mode. The iteration count and seed only apply to the old v1 single-key mode.&lt;/p&gt;
</description>
 <pubDate>Fri, 10 Feb 2006 20:26:46 +0100</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 3081 at http://www.hermann-uwe.de</guid>
</item>
<item>
 <title>GELI</title>
 <link>http://www.hermann-uwe.de/blog/howto-encrypted-usb-thumb-drives-and-usb-hard-disks-using-loop-aes#comment-3076</link>
 <description>&lt;p&gt;Hm, I&#039;m using Debian, and I don&#039;t see me switching to FreeBSD anytime soon ;) Anyways, I&#039;ll definately watch Jacob Applebaums video as soon as it&#039;s available...&lt;/p&gt;
</description>
 <pubDate>Wed, 08 Feb 2006 21:57:32 +0100</pubDate>
 <dc:creator>Uwe Hermann</dc:creator>
 <guid isPermaLink="false">comment 3076 at http://www.hermann-uwe.de</guid>
</item>
<item>
 <title>look at GELI</title>
 <link>http://www.hermann-uwe.de/blog/howto-encrypted-usb-thumb-drives-and-usb-hard-disks-using-loop-aes#comment-3074</link>
 <description>&lt;p&gt;You should really take a look at GELI on FreeBSD. There was a very, very interesting talk at 22C3 by Jacob Appelbaum (still waiting for the video) and he said: cryptoloop is shit, it has a real bad design and is a stupid implementation!&lt;/p&gt;
</description>
 <pubDate>Tue, 07 Feb 2006 01:37:59 +0100</pubDate>
 <dc:creator>Anonymous</dc:creator>
 <guid isPermaLink="false">comment 3074 at http://www.hermann-uwe.de</guid>
</item>
<item>
 <title>crypsetup and loop-AES?</title>
 <link>http://www.hermann-uwe.de/blog/howto-encrypted-usb-thumb-drives-and-usb-hard-disks-using-loop-aes#comment-3065</link>
 <description>&lt;p&gt;That package looks nice, but it&#039;s intended to be used with &lt;a href=&quot;http://www.saout.de/misc/dm-crypt/&quot;&gt;dm-crypt&lt;/a&gt;, right? Or is there a way to use it with loop-AES?&lt;/p&gt;
&lt;p&gt;Loop-AES is said to be a bit faster and more secure than dm-crypt, that&#039;s why I chose it.&lt;/p&gt;
</description>
 <pubDate>Mon, 06 Feb 2006 13:02:12 +0100</pubDate>
 <dc:creator>Uwe Hermann</dc:creator>
 <guid isPermaLink="false">comment 3065 at http://www.hermann-uwe.de</guid>
</item>
<item>
 <title>apt-get install cryptsetup</title>
 <link>http://www.hermann-uwe.de/blog/howto-encrypted-usb-thumb-drives-and-usb-hard-disks-using-loop-aes#comment-3064</link>
 <description>&lt;p&gt;I suggest to use cryptsetup to automate all the handling of loop device and mounting.  It&#039;s very nice and handy.&lt;/p&gt;
&lt;p&gt;Ciao,&lt;/p&gt;
&lt;p&gt;Enrico&lt;/p&gt;
</description>
 <pubDate>Mon, 06 Feb 2006 12:39:10 +0100</pubDate>
 <dc:creator>Enrico Zini</dc:creator>
 <guid isPermaLink="false">comment 3064 at http://www.hermann-uwe.de</guid>
</item>
<item>
 <title>HOWTO: Encrypted USB thumb drives and (USB) hard disks using loop-AES</title>
 <link>http://www.hermann-uwe.de/blog/howto-encrypted-usb-thumb-drives-and-usb-hard-disks-using-loop-aes</link>
 <description>&lt;p&gt;Yet another thing that has been on my TODO list for quite a while: encrypted USB thumb drives and/or encrypted external USB hard drives.&lt;/p&gt;
&lt;p&gt;I have finally tried this over the weekend using &lt;a href=&quot;http://sourceforge.net/projects/loop-aes/&quot;&gt;loop-AES&lt;/a&gt;. This is very useful for securing your USB thumb drive contents in case you lose it or it gets stolen. Also, I use an external USB hard drive for backups (previously unencrypted). This is encryped now, too.&lt;/p&gt;
&lt;p&gt;Here&#039;s a quick HOWTO:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
    Get the &lt;a href=&quot;http://sourceforge.net/projects/loop-aes/&quot;&gt;loop-AES kernel patches&lt;/a&gt;, apply them, enable &quot;&lt;code&gt;AES encrypted loop device support&lt;/code&gt;&quot; in &quot;&lt;code&gt;Device Drivers -&gt; Block Devices -&gt; Loopback device support&lt;/code&gt;&quot;, and recompile the kernel.&lt;br /&gt; I also enabled &quot;&lt;code&gt;loop encryption key scrubbing support&lt;/code&gt;&quot; as it seems to promise higher security (can anybody confirm that?).&lt;br /&gt;
    If you&#039;re using the Debian kernel packages, &lt;code&gt;apt-get install loop-aes-2.6-686&lt;/code&gt; (or a similar package) should suffice.
  &lt;/li&gt;
&lt;li&gt;
    Get a loop-aes enabled &lt;code&gt;losetup&lt;/code&gt;, &lt;code&gt;mount&lt;/code&gt; etc.:&lt;br /&gt;
    &lt;code&gt;apt-get install loop-aes-utils&lt;/code&gt;
  &lt;/li&gt;
&lt;li&gt;
    Securely delete the target partition: &lt;code&gt;shred -n 1 -v /dev/sda3&lt;/code&gt;.&lt;br /&gt;
    Use &lt;code&gt;-n 25&lt;/code&gt; or higher if you want more security and have a few days time to wait for the thing to finish...
  &lt;/li&gt;
&lt;li&gt;
    Setup the loopback device: &lt;code&gt;losetup -e aes256 -C 3 -S &#039;seed&#039; /dev/loop0 /dev/sda3&lt;/code&gt;.&lt;br /&gt;
    &lt;strong&gt;Notes:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I used AES-256 as cipher, but others are possible.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;-C 3&lt;/code&gt; means &quot;run hashed password through 3000 iterations of AES-256 before using it for loop encryption. This consumes lots of CPU cycles at loop setup/mount time but not thereafter.&quot; (see &lt;code&gt;losetup(8)&lt;/code&gt;). This is supposed to be more secure.&lt;/li&gt;
&lt;li&gt;Using &lt;code&gt;-S &#039;seed&#039;&lt;/code&gt; (replace &quot;&lt;code&gt;seed&lt;/code&gt;&quot; with a secret string like &quot;&lt;code&gt;g7sN4&lt;/code&gt;&quot; or something) should make brute force attacks a bit harder. Don&#039;t forget the seed!&lt;/li&gt;
&lt;li&gt;You&#039;ll be asked for a passphrase &gt; 20 characters. Choose a good one. Don&#039;t forget it!&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Create the filesystem (I used ext3): &lt;code&gt;mke2fs -j /dev/loop0&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Detach the loopback device: &lt;code&gt;losetup -d /dev/loop0&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
    Add this to &lt;code&gt;/etc/fstab&lt;/code&gt;:&lt;br /&gt;
    &lt;code&gt;/dev/sda3       /mnt/crypted_sda3       ext3    noauto,loop=/dev/loop0,encryption=AES256,itercountk=3 0 0&lt;/code&gt;
  &lt;/li&gt;
&lt;li&gt;Mount the (now encrypted) partition by supplying the seed and entering the chosen password: &lt;code&gt;mount -o pseed=seed /mnt/crypted_sda3&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Done. You can now copy stuff to &lt;code&gt;/mnt/crypted_sda3&lt;/code&gt; which will be encrypted automatically.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;For a more detailed guide read the &lt;a href=&quot;http://www.tldp.org/HOWTO/Encrypted-Root-Filesystem-HOWTO/&quot;&gt;Encrypted-Root-Filesystem-HOWTO&lt;/a&gt;. A &lt;a href=&quot;http://www.saout.de/tikiwiki/tiki-index.php?page=UserPageChonhulio&quot;&gt;performance comparison of different ciphers&lt;/a&gt; is available, but in general I didn&#039;t notice too much of a slow-down because of the encryption...&lt;/p&gt;
</description>
 <comments>http://www.hermann-uwe.de/blog/howto-encrypted-usb-thumb-drives-and-usb-hard-disks-using-loop-aes#comments</comments>
 <category domain="http://www.hermann-uwe.de/taxonomy/term/1143">aes</category>
 <category domain="http://www.hermann-uwe.de/taxonomy/term/1144">backups</category>
 <category domain="http://www.hermann-uwe.de/taxonomy/term/1141">cipher</category>
 <category domain="http://www.hermann-uwe.de/taxonomy/term/95">encryption</category>
 <category domain="http://www.hermann-uwe.de/taxonomy/term/1140">hard drive</category>
 <category domain="http://www.hermann-uwe.de/taxonomy/term/335">kernel</category>
 <category domain="http://www.hermann-uwe.de/taxonomy/term/60">linux</category>
 <category domain="http://www.hermann-uwe.de/taxonomy/term/1139">loop-aes</category>
 <category domain="http://www.hermann-uwe.de/taxonomy/term/1142">losetup</category>
 <category domain="http://www.hermann-uwe.de/taxonomy/term/38">security</category>
 <category domain="http://www.hermann-uwe.de/taxonomy/term/958">usb</category>
 <pubDate>Mon, 06 Feb 2006 11:34:28 +0100</pubDate>
 <dc:creator>Uwe Hermann</dc:creator>
 <guid isPermaLink="false">764 at http://www.hermann-uwe.de</guid>
</item>
</channel>
</rss>
