HOWTO Encrypt CD/DVDs in Ubuntu
This guide can be adapted to any distro, its not Ubuntu specific.
Installing necessary tools
sudo apt-get install aespipe mkisofs loop-aes-utils
Chose a password
You need to chose a 20+ character password and DO NOT FORGET IT, you will NEVER get your data back if you forget the password.
Creating the CD/DVD image
Make a directory called backup then copy the files you want to burn into the backup directory.
We are using AES encryption, you can chose from 128 or 256 bit key lengths, I recommend 256.
mkisofs -r backup | aespipe -e aes256 > backup.iso
or for 128 bit key length
mkisofs -r backup | aespipe -e aes128 > backup.iso
Mounting the image
First we need to load some modules
sudo modprobe aes
sudo modprobe cryptoloop
For 128 bit key lengths:
sudo mount -t iso9660 backup.iso /mnt/iso -o loop=/dev/loop0,encryption=aes128
For 256 bit key lengths:
sudo mount -t iso9660 backup.iso /mnt/iso -o loop=/dev/loop0,encryption=aes256
This will mount the image in /mnt/iso (make sure you have the directory before you try to mount)
Burning
You can burn the image with your favorite program (gnomebaker, k3b), you might get some warnings about the image but you can ignore them.
Mounting the new CD/DVD
First make sure you loaded the aes and cryptoloop modules (see above)
sudo mount -t iso9660 /dev/cdrom /mnt/iso -o loop=/dev/loop0,encryption=aes256
Thank you for reading this post. You can now Read Comments (29) or Leave A Trackback.
Post Info
This entry was posted on Saturday, March 17th, 2007 and is filed under HOWTO, Linux, Ubuntu.You can follow any responses to this entry through the Comments Feed. You can Leave A Comment, or A Trackback.
Previous Post: Festival: Linux Text-To-Speech »
Next Post: Overclocking ATI Radeon cards in Linux »
Read More
Related Reading:- Beryl in Ubuntu Feisy repositories
- Tremulous: the best open source game I’ve played
- Overclocking ATI Radeon cards in Linux
- HOWTO Encrypt CD/DVDs in Ubuntu
- Festival: Linux Text-To-Speech
- Top 5 Linux Live CD/DVDs
- Ubuntu Customization Guide part I
- New Domain!
- Ultimate Ubuntu performance tweaking guide
- Windows Vista (Aero) VS Linux Ubuntu (beryl)


March 18th, 2007 00:00
where does the key get entered?
March 18th, 2007 10:13
when the password is used and where
thanks
March 21st, 2007 20:07
it will prompt to create a password after you run the mkisofs | aespipe command.
it will prompt for the password when you try to mount the image or cd
April 1st, 2007 04:22
[…] No Comments If you’re looking for a fast method to encrypt/decrypt data on CD/DVD and linux, this brief tutorial is for […]
April 13th, 2007 21:21
Nice little “howto” .. Especially when they sell software to do that at bend-over prices..
June 12th, 2007 19:42
[…] goodness, check out how to encrypt your Gmail, your data, instant messages, and VoIP calls. HOWTO Encrypt CD/DVDs in Ubuntu [Linux […]
June 12th, 2007 20:27
Can the encrypted CD/DVD work on Win XP and Mac? Or can it only be accessed in a Linux environment?
June 12th, 2007 23:41
[…] goodness, check out how to encrypt your Gmail, your data, instant messages, and VoIP calls. HOWTO Encrypt CD/DVDs in Ubuntu [Linux […]
June 13th, 2007 08:24
[…] Linux Monitor » Blog Archive » HOWTO Encrypt CD/DVDs in Ubuntu (tags: linux security tips) […]
June 13th, 2007 12:19
[…] HOWTO Encrypt CD/DVDs in Ubuntu (tags: security linux ubuntu howto dvd encryption) Tags: […]
June 13th, 2007 19:42
[…] the tutorial on any distro. The tutorial demonstrates how to encrypt at 128 bits and 256 bits. link I am what i am, much more than a God, much less than a […]
June 14th, 2007 23:03
[…] Encrypt your CDs and DVDs Filed under: Linux — 0ddn1x @ 2007-06-14 20:01:43 +0000 http://www.linuxmonitor.net/blog/2007/03/howto-encrypt-cddvds-in-ubuntu.html […]
June 17th, 2007 04:09
[…] Linux Monitor » Blog Archive » HOWTO Encrypt CD/DVDs in Ubuntu (tags: linux dvd security encryption tutorial cd backup ubuntu toread) […]
June 18th, 2007 17:04
[…] HOWTO Encrypt CD/DVDs in Ubuntu Need to back up your sensitive data to DVD? Why not encrypt it! This article tells you how to do so step by step, including how to mount it for access later. (tags: howto privacy security linux) […]
June 26th, 2007 20:37
[…] goodness, check out how to encrypt your Gmail, your data, instant messages, and VoIP calls. HOWTO Encrypt CD/DVDs in Ubuntu [Linux […]
June 29th, 2007 12:22
[…] How To Encrypt CDs/DVDs in Ubuntu ] [ TrueCrypt […]
July 11th, 2007 23:22
[…] HOWTO Encrypt CD/DVDs in Ubuntu […]
July 19th, 2007 22:42
[…] HOWTO Encrypt CD/DVDs in Ubuntu […]
July 19th, 2007 23:59
[…] HOWTO Encrypt CD/DVDs in Ubuntu […]
July 20th, 2007 08:11
[…] HOWTO Encrypt CD/DVDs in Ubuntu […]
July 20th, 2007 18:36
[…] HOWTO Encrypt CD/DVDs in Ubuntu […]
August 11th, 2007 15:41
[…] HOWTO Encrypt CD/DVDs in Ubuntu […]
August 12th, 2007 16:31
[…] HOWTO Encrypt CD/DVDs in Ubuntu […]
August 17th, 2007 05:04
[…] HOWTO Encrypt CD/DVDs in Ubuntu […]
September 7th, 2007 13:31
[…] How to encrypt CDs / DVDs in Ubuntu […]
September 22nd, 2007 19:59
[…] Ubuntu desktop 53. How-To: Ubuntu Media Server 54. How-to: Cheap Ubuntu Media Server Part 2 55. HOWTO Encrypt CD/DVDs in Ubuntu 56. How-to: Installing Ubuntu Linux on a usb pendrive 57. Install KDE Desktop in Ubuntu 58. Set […]
December 24th, 2007 14:53
[…] you’re willing to muck around with Linux maybe this would help : HOWTO Encrypt CD/DVDs in Ubuntu speaking of Linux, reminds me, werent we supposed to start working on a groundbreaking , google […]
December 31st, 2007 09:18
[…] HOWTO Encrypt CD/DVDs in Ubuntu […]
April 22nd, 2008 07:18
[…] HOWTO Encrypt CD/DVDs in Ubuntu […]