Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
useful:encryption [2009/01/05 15:16] chemistuseful: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:sha256 -s 256 luksFormat /dev/"device_name" 
- 
-#open device 
-cryptsetup luksOpen /dev/"device_name" "crypt_name" 
- 
-#make filesystem 
-mkfs.ext4 /dev/mapper/"crypt_name" 
- 
-#mount and fill with random data (fast way) 
-mount /dev/mapper/"crypt_name" /mnt/ 
-randfs /mnt/random.file 
- 
-#umount and close crypt 
-umount /mnt/ 
-cryptsetup luksClose "crypt_name"</code> 
-=== links === 
-[[useful:encryption:randfs]] 
-==== loop-aes with 100MB file ==== 
-<code bash> 
-#create file crypt.aes 100MB 
-dd if=/dev/urandom of=./crypt.aes bs=2k count=50000 
-#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 /dev/loop0</code> 
-edit /etc/fstab 
-<code bash> 
-/crypt.aes /mnt/       ext3    noauto,encryption=aes         0 
-</code> 
  
Last modified: le 2009/01/05 15:16