Creating an Encrypted DVD with Debian Linux
As a network security professional, I occasionally need to save data relating to an investigation to a DVD. The data is often sensitive and requires encryption.
I found great tutorials at HOWTO Burn Encrypted DVDs and HOWTO Compile an aespipe Program
Below is my brief step-by-step guide. (Detailed information can be found at the above links.)
Note: Requirements aespipe (I use Debian Linux, which would loop-aes-modules)
Step 1:
Create a directory with the files you want to save on CD (or DVD).
In this example, we'll create a directory named WALDO.
Step 2 (you will be prompted to enter a passphrase):
$ yes "" dd of=image.iso bs=512 count=16
$ head -c 2925 /dev/random uuencode -m - head -n 66 tail -n 65 \
gpg --symmetric -a dd of=image.iso conv=notrunc
Step 3:
$ mkisofs -quiet -r WALDO aespipe -K WALDO.iso -O 16 >> WALDO.iso
Step 4: Test it by mounting on loopback
$ mount -t iso9660 WALDO.iso /cdrom -o \
loop,encryption=AES128,gpgkey=WALDO.iso,offset=8192
Step 5: Burn the iso (k3b works fine)
Step 6: mount the cd via fstab entry or:
$ mount -t iso9660 /dev/cdrom /cdrom -o \
loop,encryption=AES128,gpgkey=/dev/cdrom,offset=8192
Post provided by Mary M. Chaddock









