LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-19-2005, 03:54 PM   #1
grayFalcon
Member
 
Registered: Jan 2003
Distribution: Debian
Posts: 69

Rep: Reputation: 15
burning encrypted CDs?


Hello everybody!

Just a short question: How can I burn encrypted CDs that can easily be mounted into any system that supports cryptography?
 
Old 05-20-2005, 09:33 AM   #2
TruckStuff
Member
 
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
Read up on HDD encryption, its almost exactly the same in Linux. Short version:

1) Create a loopback device of the CD device
2) Mount the loopback device
3) Burn to loopback device.
 
Old 05-20-2005, 09:34 AM   #3
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
so you want the cd to contain encrypted files, or you want the whole filesystem encryted ??

to encrypt files, use gnuPG.

to encrypt the filesystem, you will first need to create a disk image,
then setup a loop device pointing to that iso image.
next use the device mapper (with the encrypted target, use cryptsetup to do this)
that cat the iso image, into the encrypted device map.

you can then burn that iso to a cd, it is encrypted.

you will be able to mount it on any other linux (kernel 2.6 or later) with dm-crypt support.

in other words...
use somthing like k3b or nero to generate the iso disk image. (for example called /disk.iso)

#create a loop device
modprobe loop
losetup /dev/loop1 /dsk.iso

# setup an encrypted device mapper.
cryptsetup -c aes -y create encrypted_disk /dev/loop1
# enter a passowrd and confirm it

#pass the disk through the device mapper (to encrypt it)
cat /disk.iso /dev/mapper/encrypted_disk

#reove the deivice mapper
cryptsetup remove encrypted_disk

#remove the loop
loopsetup -d /dev/loop1

#burn the new ISO image in the usual way.

EDIT: seems we posted at same time...
can you burn to device mappers ???? i dint think you could.

Last edited by qwijibow; 05-20-2005 at 09:35 AM.
 
Old 05-20-2005, 09:54 AM   #4
grayFalcon
Member
 
Registered: Jan 2003
Distribution: Debian
Posts: 69

Original Poster
Rep: Reputation: 15
Thanks a lot for the quick replies

I didn't know you could treat a loopback-mounted iso image like any other filesystem. This will be a lot of help in other things too!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
burning cds with the new 2.6.11.8 djgerbavore Linux - Newbie 6 05-12-2005 08:26 PM
Burning MP3 CDs (not audio CDs) mlamarche Linux - Newbie 6 11-29-2004 04:09 AM
Burning CDs? quozt Linux - General 4 08-26-2003 06:19 PM
burning cds andox Linux - Newbie 7 06-13-2003 10:02 PM
burning RH cd's. Are they encrypted? zLinuxz Linux - General 18 10-08-2002 11:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration