Posts tagged ‘encryption’

HOWTO: OpenBSD 3.6 encrypted disk

openbsd.png

In this document I will try to explain what it takes to get an encrypted fileserver.

I chose to have a server with one disk where the OS resides and all ‘big disks’ to be mounted into the directory-tree but that’s not something that’s necessary or such. I did not attempt to have the OS itself encrypted, to me it seemed unneedingly complicated and way to much a ‘single-point-of-failure’ solution to what I was looking for. I did however choose for the most secure OS out there (imho), OpenBSD :-)

From this point I assume you have an OpenBSD-box with OpenBSD 3.6 (or newer) and a generic kernel (there’s plenty of excellent literature on www.openbsd.org to help you with that) and have all the services you want installed (ftp/samba/etc.).

Continue reading ‘HOWTO: OpenBSD 3.6 encrypted disk’ »

Use GPG with Mutt

mutt.png

OK, well, we’ll start simple and have you send me your key. Mutt makes that very easy: reply to this and then exit the editor. On the compose screen (that’s the one with the to, cc, subject, attachments and other things screen, right?) just press esc-k. It will then ask you what key you want to attach. Just type in your email address: user@some.host.foo.

Continue reading ‘Use GPG with Mutt’ »

Using vi / vim to Encrypt Text Files

vim.png

The disadvantage of using encrypted partitions is that while the partition is mounted, at least root can access the data. To prevent this, vi can be used in encrypted mode.

Use vi -x filename (or vim alternatively) to edit a new file. vi prompts you to set a password, after which it encrypts the content of the file. Whenever you access this file, vi requests the correct password.

For even more security, you can place the encrypted text file in an encrypted partition. This is recommended because the encryption used in vi is not very strong.

Source

Encrypt your swap partition in OpenBSD

openbsd.png

By default OpenBSD 4.3 will encrypt the swap partition. To turn this on for OpenBSD versions 3.7 and below:

  • Step 1 – Enable this feature without a reboot
  • Step 2 – Edit the sysctl config file, so that after a reboot the swap partition will be encrypted

1. Change the kernel state variable:

# sysctl -w vm.swapencrypt.enable=1

2. Edit /etc/sysctl.conf from:

#vm.swapencrypt.enable=1

to:

vm.swapencrypt.enable=1

Sign & Encrypt your Emails with Thunderbird/Enigmail

thunderbird.png

Thunderbird is a great and well know open source email client brought to you by the same group that puts out Firefox. But like Firefox, there’s extensions we can add to it to make an already secure application more secure. Welcome to the world of signing and encrypting your emails. This tutorial will already assume you have thunderbird installed, be it your distro’s package or the Mozilla Builds. We will also assume you have installed the Enigmail extension, luckily for me openSuse provides this with their default Thunderbird install from their repo’s. Other’s may have to download and install it from here. And for the last of our assumptions, we will assume you have GnuPG installed as well. Most Linux distributions today include GnuPG by default. To find out if this is the case, get to a command prompt and type gpg –version. If it tells you that you’ve got GnuPG 1.4.9 (or some later version), then you don’t need to do anything: it’s already there. To familiarize yourself with the basics of GPG, look at the man page for it, and also check out a previous entry Tuxtraining has written on the subject.

Continue reading ‘Sign & Encrypt your Emails with Thunderbird/Enigmail’ »

Use OTR to Encrypt Pidgin Conversations

pidgin.png

OTR allows you to have private conversations over instant messaging by providing encryption, authentication, and deniability.  Most distro’s have OTR in the repo’s.    It comes standard with your pidigin installation in Suse.  A search of Synaptic or pruit/yumex in Fedora should easily find OTR as well.  If it is not in your repo’s you can build it from source here: http://www.cypherpunks.ca/otr/#downloads

Binaries are also provided for Windows users as well.  Below is a short video displaying OTR in use.

Encrypt files with OpenSSL

terminal-glossy.jpg

Need to protect sensitive information?  Then you need an encryption program.  Luckily most linux distrubtions come with openSSL already installed.  I’ve tested this on openSuse and Ubuntu and both seem to have the package right out of the box.

To encrypt a file:  openssl des3 -salt -in existing_file.txt -out file.des3

The above will prompt for a password, or you can put it in with a -k option (as shown below), assuming you’re on a trusted server.

To Decrypt: openssl des3 -d -salt -in file.des3 -out file.txt -k mypassword

Need to encrypt what you type? Enter the following, then start typing and ^D to end.

$ openssl des3 -salt -out new_file_name.txt

Also See:

  1. Encrypt-Decrypt file using GPG
  2. Use Yast to Encrypt Partitions

Use Yast to Encrypt Partitions

yast.png

Use YaST to encrypt partitions or parts of your file system during installation or in an already installed system. However, encrypting a partition in an already installed system is more difficult, because you have to resize and change existing partitions. In such cases, it may be more convenient to create an encrypted file of a defined size in which to store other files or parts of your file system. To encrypt an entire partition, dedicate a partition for encryption in the partition layout. The standard partitioning proposal as suggested by YaST does not, by default, include an encrypted partition. Add it manually in the partitioning dialog.

Continue reading ‘Use Yast to Encrypt Partitions’ »

How to Encrypt Bit Torrent Traffic With Ktorrent and Azurues

Azureus.png

More and more ISP’s are limiting throttling BitTorrent traffic on their networks. By throttling BitTorrent traffic the speed of BitTorrent downloads decrease, and high speed downloads are out of the question.

The list of ISP’s that limit BitTorrent traffic, or plan to do so is growing every day, and according to the BBC, the ‘bandwidth war’ has begun.

Are you not sure if your traffic is being throttled Check the list of bad ISP’s.

But there is a solution. Encrypting your torrents will prevent throttling ISP’s from shaping your traffic. I will explain how to enable encryption in Azureus, ktorrent, Deluge the three most popular torrent clients in Linux.

Continue reading ‘How to Encrypt Bit Torrent Traffic With Ktorrent and Azurues’ »