Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
useful:encryption [2009/01/05 15:16] – chemist | useful:encryption [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== encryption ====== | ||
- | ===== harddisks usbkeys ===== | ||
- | ==== dm-crypt & luks ==== | ||
- | <code bash> | ||
- | #crypt device | ||
- | cryptsetup -y -c aes-cbc-essiv: | ||
- | |||
- | #open device | ||
- | cryptsetup luksOpen / | ||
- | |||
- | #make filesystem | ||
- | mkfs.ext4 / | ||
- | |||
- | #mount and fill with random data (fast way) | ||
- | mount / | ||
- | randfs / | ||
- | |||
- | #umount and close crypt | ||
- | umount /mnt/ | ||
- | cryptsetup luksClose " | ||
- | === links === | ||
- | [[useful: | ||
- | ==== loop-aes with 100MB file ==== | ||
- | <code bash> | ||
- | #create file crypt.aes 100MB | ||
- | dd if=/ | ||
- | #setup loop, you will be prompted for passphrase | ||
- | losetup -e aes /dev/loop0 ./crypt.aes | ||
- | #make FS | ||
- | mkfs.ext3 /dev/loop0 | ||
- | #release loop | ||
- | losetup -d / | ||
- | edit /etc/fstab | ||
- | <code bash> | ||
- | /crypt.aes /mnt/ | ||
- | </ | ||
Last modified: le 2009/01/05 15:16