<?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>Yoooder.com &#187; Encryption</title>
	<atom:link href="http://yoooder.com/wordpress/category/encryption/feed/" rel="self" type="application/rss+xml" />
	<link>http://yoooder.com/wordpress</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 08 Jul 2011 14:13:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Creating an encrypted volume</title>
		<link>http://yoooder.com/wordpress/2007/03/backlog-03192007-2/</link>
		<comments>http://yoooder.com/wordpress/2007/03/backlog-03192007-2/#comments</comments>
		<pubDate>Tue, 20 Mar 2007 03:40:22 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://yoooder.com/wordpress/?p=11</guid>
		<description><![CDATA[I needed to meet my company's required security policy for taking source code offsite: 256bit AES encryption. Since the source code I had on my laptop was within a Virtual Machine, I thought it would be a good solution to make an encrypted filesystem big enough for the VM, and only mount it when I [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to meet my company's required security policy for taking source code offsite: 256bit AES encryption.</p>
<p>Since the source code I had on my laptop was within a Virtual Machine, I thought it would be a good solution to make an encrypted filesystem big enough for the VM, and only mount it when I wanted to work.</p>
<p>Here's my requirements:<br />
- Encrypted FS that is (un)mountable whenever need be<br />
- Passphrase to mount the filesystem<br />
- 30GB of storage within the filesystem, to accomodate the 30GB VM disk.<span id="more-11"></span></p>
<p>First, we create a file that will become the filesystem.  Using dd we make it the size we want:<br />
dd if=/dev/zero bs=1G count=30 of=/home/steve/devel_image</p>
<p>Here's what the attributes mean:<br />
if is the input file since we're making an empty file we'll set if to /dev/zero, which will give us an empty file of zeros<br />
of is the output file, or the file you want to create.  Here I'm telling it to make a file called devel_image in my /home/steve folder<br />
bs is the bytes, but I like to call it the bucket size, since the way it is used is to declare your unit size.  Here 1G means we wants 1GB chunks, or buckets.  You can give it different units, 1M, 5G, whatever.<br />
count is the number of buckets you wish to use.  Since we want a 30GB file, and are using 1G buckets, we'll need 30 of them to make 30GB.</p>
<p>This makes a 30GB file called devel_image in my home directory, and takes some time to complete (30 gigs is kinda big, y'know?)</p>
<p>Next we setup a loopback device (which will make the system see the file as a drive).  using losetup you can create the device, and you can even add encryption at this point--however it's becomming deprecated, and better to handle the encryption on it's own (as cryptoloop support will be removed from the kernel at some point</p>
]]></content:encoded>
			<wfw:commentRss>http://yoooder.com/wordpress/2007/03/backlog-03192007-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

