First page Back Continue Last page Graphics
Creating Encrypted Home FS
- dd if=/dev/urandom of=/home/foo/data bs=1M \
count=<size in MB>
- dd if=/dev/urandom bs=1c count=32 | \
openssl enc -aes-256-ecb > /home/foo/key
(count=<key size / 8>)
- openssl enc -d -aes-256-ecb -in \
/home/foo/key | losetup e twofish -k 256 \
-p0 /dev/loop0 /home/foo/data *
- mkfs.ext2 /dev/loop0 *
- losetup -d /dev/loop0 *
- Steps marked with (*) require root privileges