On 23.01.2007 13:42:11, jean-christophe.haessig@xxxxxxxxxxxx wrote: > Hello, > > I'm looking for tools enabling creation of dm-crypt compatible images > by filtering data through pipes, e.g. : > mkisofs -r <dir> | cryptpipe >/dev/somedevice > or to burn them directly with cdrecord. For this case, try this: # touch /cd.iso # losetup /dev/loop/0 /cd.iso # echo 0 $(( 680*1024*1024/512 )) crypt aes-cbc-plain 0123456789abcdef 0 /dev/loop/0 0 | dmsetup create encrypted_cd # mkisofs ... > /dev/mapper/encrypted_cd Then you have an iso file with an encrypted ISO9660 filesystem. You might have to tweak a bit, and maybe it doesn't even work because of the way mkisofs works. You can - however - use ordinary filesystems. # dd if=/dev/zero of=/filesystem bs=1M count=680 # dmmkfs.sh /filesystem # dmmount.sh /filesystem /mnt/encrypted # ... # dmumount /mnt/encrypted The dm* commands are from http://shellscripts.org/project/dmscripts Note that it's entirely possible to write filesystems other than iso9660 to a CD. Greetings, Benjamin -- #!/bin/sh #!/bin/bash #!/bin/tcsh #!/bin/csh #!/bin/kiss #!/bin/ksh #!/bin/pdksh #!/usr/bin/perl #!/usr/bin/python #!/bin/zsh #!/bin/ash Feel at home? Got some of them? Want to show some magic? http://shellscripts.org
Attachment:
pgphMgFvV8klC.pgp
Description: PGP signature