AES encrypted file in Debian
I've recently switched from Gentoo to Debian, one of the problems I now have is that I cannot mount an encrypted file that was accessbile under Gentoo. The file is encrypted using aes with a 256 bit key size, but when I try to mount it an error is given. I have the following entry in my fstab and I have insmod'ed the kernel module (in /lib/modules/2.6.8-1-686/kernel/crypto/) and /proc/crypto shows the module correctly, I have also installed "loop-aes-utils" but I'm not entirely sure what that provides which the kernel modules don't!
/etc/fstab Code:
# Encrypted file Code:
$ cat /proc/crypto Code:
$ mount .crypto |
Just for some extra info for my previous post, I can successfully mount a file using the loopback interface:
Code:
mount -o ro,loop -t iso9660 /path/to/an/iso/image.iso /mnt/iso/ |
Update
As an update to my post I had to resort to running my old Gentoo system to decrypt the files, save them unencrypted and then I could access them in my Debian system.
I have no idea why I couldn't mount the encrypted files in Debian (possibly a version difference?) but I could create an encrypted file in Debian and successfully write to it. Code:
$ modprobe cryptoloop Does anyone have a suggestion for the best way of encrypting files in Linux which are accessible across distros and hopefully should be accessible sometime in the distant future? |
That is strange. I wonder why it wouldn't work. :confused:
|
this is interesting. I'd like to encrypt my /home partition, are you aware of a tutorial for debian on how to do this step by step?
Thanks |
Quote:
http://linuxfromscratch.org/~devine/erfs-howto.html My thing though, is that I hate hate hate compiling. Fortunately, I found some pre-built loop-aes modules at apt-get.org www.apt-get.org |
thanks Sepero
|
All times are GMT -5. The time now is 08:19 AM. |