Encrypt Files and Directories Easily

I was recently looking for an easy way to encrypt individual files and directories (recursively), and I ran across the linux command mcrypt. This nifty little utility does just what I want, but doesn’t do anything fancy – it just does encryption on a single file or standard input.

With a wee bitty script, however, you can encrypt anything you like quite easily. You have to have mcrypt installed (and also tar & bzip2, but you’ve likely got that already). Check this out:

#!/bin/bash
IFS=$’\n’
if [[ -z $3 ]]
then
echo “Use: encrypt [file/directory] [password] [outputname]”
exit
fi
echo “Encrypting $1 with password $2 into file $3″
tar -c $1 | mcrypt -p -q -k $2 > $3
echo “Done with encryption.”

Save it as “encrypt.sh” or whatever other name floats your boat, give it execute permissions, and you’re all set. It will tar, compress, and encrypt your file(s) and directories into whatever output file you specify. Just make sure you don’t forget the password you use to encrypt the file with: there isn’t any easy way to find out what it was if you lose it.

In order to decrypt your data, use this little script:

#!/bin/bash
IFS=$’\n’
if [[ -z $2 ]]
then
echo “Use: decrypt [file/directory] [password]”
exit
fi
echo “Decrypting $1 with password $2″
cat $1 | mdecrypt -q -p -k $2 | tar –x
echo “Done with decryption.”

Save it as “decrypt.sh” and give it execute permissions, and now you can easily decrypt your data as well. It can’t really get much easier than that!

Leave A Comment »
Share this post!
del.icio.us:Encrypt Files and Directories Easilydigg:Encrypt Files and Directories Easilyspurl:Encrypt Files and Directories Easilywists:Encrypt Files and Directories Easilysimpy:Encrypt Files and Directories Easilynewsvine:Encrypt Files and Directories Easilyblinklist:Encrypt Files and Directories Easilyfurl:Encrypt Files and Directories Easilyreddit:Encrypt Files and Directories Easilyfark:Encrypt Files and Directories Easilyblogmarks:Encrypt Files and Directories EasilyY!:Encrypt Files and Directories Easilysmarking:Encrypt Files and Directories Easilymagnolia:Encrypt Files and Directories Easilysegnalo:Encrypt Files and Directories Easily

How to Import Thunderbird Mail into Outlook

There are lots of things out there on the net related to getting your mail out of Outlook and into Thunderbird, but not really anything that deals with the reverse. I’ve been using Thunderbird for a while, and as much as I like it, I really want to give the new Outlook a try.

Unfortunately, Outlook has pretty lame importing features, so you have to jump through hoops to get your mail into Outlook from Thunderbird. This unusual method should work for importing any mbox formatted mail (Thunderbird, for example) into Outlook. I tried it with Outlook 2007; it should work fine with all older versions as well.

You’ll need to have Outlook Express installed on your computer (if you have XP or 2000 installed it should already be there) and you will also need to install Eudora from http://www.eudora.com/ (you can uninstall it later when you are done).

The whole process is painless, but it feels really unecessary to have to go through so many steps to import your email into Outlook. The basic problem is that Outlook doesn’t have the capability of importing mbox formatted email or Eudora email either. Considering that the mbox format has been around for 11 years or so and the commercial version of Eudora for 16 years, I wonder what the holdup is.

Anyway, here is what you need to do:

  1. Install Eudora.
  2. Import your mbox file into Eudora.  To do this, you need to copy your mbox file to the default location of the Eudora mailbox file.  After you have done this, Eudora will open your mbox file and index it.
  3. Import your Eudora mailbox into Outlook Express (yuk!)
  4. Import your Outlook Express mail into Outlook.

So why can’t Outlook import mail as well as Outlook Express does (meaning you’d get to skip a step here)? Who knows. Someone somewhere at MS might know why Outlook seems has such lame importing features.

Another method that I’ve used is the following (if you use Linux):

  1. Import your Thunderbird mail into KMail (the KDE mail program).
  2. Select the mail messages you want to export.  You can use shift-click to select a whole group of messages at a time, but you’re likely going to have to do this for messages inside of each folder separately.
  3. Right click and then click “Save”.  It will save the selected emails into a single mbox file.
  4. Install IMAPSize.  This is a free Windows program.  You will have to now move your mbox files to your Windows computer.
  5. With IMAPSize, use the tool “mbox2eml” under the tools menu on your mbox files.  All individual emails will now be extracted from the mbox files into separate eml files.
  6. Now import your mail into Outlook Express by dragging the emails from Windows Explorer directly into the Outlook Express window.
  7. Finally, import the mail from Outlook Express into Outlook.

Anyway, if you really really want to get your mail out of Thunderbird into Outlook, this is probably how you have to do it.

Leave A Comment »
Share this post!
del.icio.us:How to Import Thunderbird Mail into Outlookdigg:How to Import Thunderbird Mail into Outlookspurl:How to Import Thunderbird Mail into Outlookwists:How to Import Thunderbird Mail into Outlooksimpy:How to Import Thunderbird Mail into Outlooknewsvine:How to Import Thunderbird Mail into Outlookblinklist:How to Import Thunderbird Mail into Outlookfurl:How to Import Thunderbird Mail into Outlookreddit:How to Import Thunderbird Mail into Outlookfark:How to Import Thunderbird Mail into Outlookblogmarks:How to Import Thunderbird Mail into OutlookY!:How to Import Thunderbird Mail into Outlooksmarking:How to Import Thunderbird Mail into Outlookmagnolia:How to Import Thunderbird Mail into Outlooksegnalo:How to Import Thunderbird Mail into Outlook



Everything here copyright rob russell, heavygravity.com.