Encryption Tools


These are the best tools to encrypt files. I have tried some of them and I have written my notes about each tool.

Truecrypt

One huge file containing all things. When syncing with a cloud storage, if you change a single file inside the container it will re-upload the whole file again.

EncFS

It is a linux filesystem. there is a port to windows but it is hacky. Also, the installation on Mac 10.9 is not straghit forward. https://github.com/mxcl/homebrew/issues/23738

Usage:

#Mount, Use absolute paths (beginning with '/')
$ encfs /path_to_folder/encrypted /path_to_folder/decrypted

eCryptFS

It is the default encryption in Ubuntu. It works the same as EncFS. It is for Linux system.

Safe

It is compatible with EncFS volumes and can be installed on Mac and Windows very easily.

FileVault

It is for Mac computers. It encrypts the whole volume. So if the hard disk stolen, everything will be encrypted

GnuGPG

It is very great tool to encrypt or signature single file and send it by email. But when handeling multiple files, then you have to do more works. In Mac install this app: GPGTools

Keys:

Generate a key: gpg --gen-key List keys: gpg --list-keys Delete a secret key: gpg --delete-secret-keys "User Name" Delete a key: gpg --delete-key "User Name" Export a key: gpg --export -a "User Name" > public.key Export a secret key: gpg --export-secret-key -a "Ahemd <User Name>" > private.key Import a key: gpg --import public.key Import a secret key: gpg --allow-secret-key-import --import private.key

When creating a key:

Not enough random bytes available. Please do some other work to give the OS a chance to collect more entropy! (Need 277 more bytes)

Open another terminal and type this: $ ls -R /. If not worked then run it again and again or find other commands.

Encryption For personal use:

Encrypt a file

$ gpg --encrypt --recipient 'Your Name' [Filename]

Encrypt non-interactive mode

$ gpg --yes --batch --passphrase=[Enter your passphrase here] -c filename.txt

Decrypt a file

$ gpg --output [Filename] --decrypt [Filename].gpg

Decrypt non-interactive mode

$ gpg --yes --batch --passphrase=[Enter your passphrase here] filename.txt.gpg

Compress folder and then encrypt

$ tar -pczf [Filename].tgz folder
$ gpg --yes --batch --passphrase=$PASSPHRASE -c [Filename].tgz

Ref: http://www.gnupg.org/howtos/en/GPGMiniHowto-3.html http://www.madboa.com/geek/gpg-quickstart/ http://www.thingy-ma-jig.co.uk/blog/22-01-2010/generate-entropy-gnupg http://www.if-not-true-then-false.com/2010/linux-encrypt-files-decrypt-files-gpg-interactive-non-interactive/ http://irtfweb.ifa.hawaii.edu/~lockhart/gpg/gpg-cs.html

how-to-encrypt-cloud-storage

comments powered by Disqus