//
you're reading...
howto, Linux, security, Solutions

Encrypted Volumes under Linux / Windows


1. Under Linux use the following procedure ;
# modprobe aes
# modprobe twofish
# modprobe cryptoloop

# mkdir $HOME/crypto
#dd if=/dev/urandom of=$HOME/crypto/container.aes bs=1k count=102400
# LOOPDEV=$( losetup -f )
# echo "Our loop device is '$LOOPDEV'"
# losetup -e aes $LOOPDEV $HOME/crypto/container.aes    (insert a strong passphrase)
# mkfs.ext3 -m 0 $LOOPDEV
# tune2fs -i 0 $LOOPDEV
# mkdir -p /mnt/crypto
# mount $LOOPDEV /mnt/crypto/
# ls -la /mnt/crypto
# umount /mnt/crypto/
# mount -o encryption=aes $HOME/crypto/container.aes \
/mnt/crypto
(we use the passphrase we set before)

# df -k
Filesystem               1K-blocks      Used Available  Use%   Mounted on
/dev/sda3                 72777208  14572600  54507652   22%   /
/dev/sda1                   116648     24521     86105   23%   /boot
tmpfs                      1026232        96   1026136    1%   /dev/shm
/root/crypto/container.aes   99150      5663     93487    6%   /mnt/crypto

To unmount and detatch crypto device ;

# umount /mnt/crypto

# losetup -d $LOOPDEV

2. Under Windows use the free open-source disk encryption software truecrypt;

Url : http://www.truecrypt.org/

Discussion

Comments are closed.

%d bloggers like this: