Using Python To Create An Encrypted Container

Michael Sperlle sperlle at yahoo.com
Sun Apr 16 13:11:02 EDT 2006


On Sun, 16 Apr 2006 08:11:12 -0700, Paul Rubin wrote:

> Michael Sperlle <sperlle at yahoo.com> writes:
>> If I could create a large file that could be encrypted, and maybe add
>> files to it by appending them and putting in some kind of delimiter
>> between files, maybe a homemade version of truecrypt could be
>> constructed. Any idea what it would take?
> 
> If by container you mean a user-level file system with transparent
> encryption, there are a bunch of ways to do it, but it's system hacking,
> Python doesn't come into it much.  If you just want an encrypted archive,
> then put your files into a normal zip file and encrypt the zip file.

I've tried that, but the encryption and decryption take a long time
compared to opening/closing the container, once it's made.

The only other thing I can think of is making it non-readable for anyone
except root, but have the feeling that's not too secure.





More information about the Python-list mailing list