Tuesday, March 31, 2009

Generate patch

Generate patch with original folder (gianfar_orig) and latest folder (gianfar_sbr).

diff -crB gianfar_orig gianfar_sbr > gianfar_sbr.patch

Found here: http://linux.byexamples.com/archives/163/how-to-create-patch-file-using-patch-and-diff/

Also can use WinMerge (Menu->Tools->Generate Patch...) but have to specify file one by one. Not very friendly.

Thursday, March 19, 2009

Data Encryption Using TrueCrypt

http://www.truecrypt.org/
Current version 6.1a

Quite easy to use.
For beginner:
1. Create Volume -> Create an encrypted file container
Basically this will create a encrypted virtual volume that can be mounted as a drive. It can reside anywhere in the harddisk.

2. Hidden volume
For purpose of protecting super-duper top secret/highly confidential data, choose "Hidden TrueCrypt volume".
In any case, this hidden volume must resides in a normal/standard TrueCrypt volume as the program will force you to create a normal TrueCrypt volume first. (Normal Mode)

3. Details Options for Outer volume
Specify the file location and the program will prompt for Outer Volume:
- "Encrpytion Algorithm" and "Hash Algorithm"
- Size
- Password. Note that this password is special for Outer volume and must be substantially different to the one for Hidden volume.
- Filesystem: FAT recommended for Outer volume as it allow bigger size for Hidden volume.
- Format

4. Details Options Hidden volume.
Options for Hidden volume are mostly similar to the Outer volume:
- Encryption and Hash algorithms
- Size. This is a part of the Outer volume size. Set to about 90% of the Outer volume size. The hidden volume incurs some overhead. Some space should be reserved for Outer volume if it's intended for storing data.
- Password: Must be substantially different than the password of Outer volume.
- Filesystem: NTFS recommended if it's intended to store file > 4GB (example: DVD image dump)

5. Mount the volume
Select the file container and mount it to a drive.