Warning this article may contain opinions of the author that you and iTWire don't agree with.
Visit the last page to have your say in our forum.

No. 1 Story

Telstra adds one million mobile services, but Sensis plummets

Telstra has revealed the addition of almost one million new mobile services in the six months to December 2011, but Sensis revenues plummeted 24 percent in 12 months.

read more

Data encryption and Ubuntu, Part II

Opinion and Analysis

Ubuntu 8.10 has a rather simple way of dealing with this: we create a PGP key and then we use that to encrypt and decrypt files.

But, before we get onto that, a few words about PGP keys. They come in two parts; the Public Key and the Private Key. When you create a PGP key on your computer you have both. Collectively they are often called a "Key Pair".

You can share the Public Key with anyone. Give it away; shout it from the mountaintops; put it on your business card or up on Facebook; it doesn't matter who has this. In fact, you can upload it to public servers such as pgp.mit.edu or keyserver.pgp.com so others can easily download it. I have a number of Public Keys up there, some of them quite old and no longer used.

To be effective, PGP uses both the keys. If you have someone's Public Key and encrypt a file using it, then only the person with the corresponding Private Key can de-crypt it. Without that particular Private Key the file is just gibberish.

The history and subject of how Public and Private Keys work is fascinating (to me anyway), full of really complex mathematics and not really appropriate for this article, so I am deliberately going to gloss over it. For the moment I'd refer you to the Wikipedia article about how Public Key cryptography works.

Only the person who created the Private Key should ever have access to it. Thus you do NOT share the Private Key with anyone. Ultimately you'll be prompted for the password when using the Private Key anyway, so be sure to select a good, strong password, but I am getting ahead of myself, as now is the time to talk about how to actually make a Key Pair.

Creating the key is actually incredibly simple. In Ubuntu, go to Applications, Accessories, Passwords and Encryption Keys. Click on the Key menu at the top left. Select "Create new key". Click PGP Key and click on Continue. Type in your Name, Email address and an optional comment.

With the email address, if you are only going to use this key for encrypting files on your local computer, then you can type in <name>@local. If you want to use this key to send encrypted emails to other people (which I'll look at in Part III), then type in your own email address in full (not theirs, which is a mistake I made early on!).

You can also elect to look at the advanced options, the only one of which I'd think about changing is the Expiration Date. By default, the key does not expire (this is probably a really good thing for local file encryption!). However, for email encryption you might want to set an expiration date, especially if you don't know if you'll have access to that email address for ever. For example, if you currently work at a company but might change jobs, or you're using this only for a short-term project.

You will be prompted for a password and will need to type this in twice. This is a very important password. It should be of sufficient strength that no-one will be able to guess it and it and should not be forgotten! It is the only way that you have of altering this PGP key, and ultimately the only protection you have of asserting that this is your key.

So, now we have generated the key, what do we do now? Please read onto page 3...



- sponsored feature -

The Death of Traditional BI: What’s Next?

How to Make Business Discovery Work for Your Business IP PABX BUYING GUIDE

Business Discovery takes its cues from consumer apps. Like Google, it encourages us- ers to hunt for and explore data without worrying about or even noticing the underly- ing technology. Their entire experience is working within an intuitive interface to get real-time, self-service results with only minimal training. ...more