Michael C Thompson wrote the following on 09/06/2007 05:55 PM:
[EMAIL PROTECTED] wrote on 09/06/2007
10:34:07 AM:
>
> Hi,
>
> When using a directory encrypted with ecryptfs to serve an apache
> webserver I am only getting garbage. The bizarre thing is that I
> have no problem using the files from the encrypted directory when
> using other applications such as emacs or the openoffice tools. To
> add to the mystery, the files that are served are of identical
> length to the original files and they all start with the roughly the
> same sequence of bytes (dumped here using "od -c", note the
> occurrence of the strings "3DUfw" and "_CONSOLE"):
eCryptfs files will have similiar looking headers because the follow
the same format. The "_CONSOLE" string is part of the spec (the exact
format eludes me right now), so that is nothing to worry about. As for
file size, eCryptfs encrypts whole pages and introduces a header page,
so your files should always be slightly larger (minimum of 1 page)
than the non-cipher version of the file.
See my other post. You are right, the sequence in the beginning was
indeed identical to the one found in the corresponding encrypted file
but there is more to it than this (as my other post explains)
> I first thought that I observed an encoding problem of sorts, but
> the fact that two completely different files both have these
> mysterious sequences in the beginning of the file tells me that
> something else is going on.
Yup, these sequences are just the standard eCryptfs headers that are
placed in every file encrypted by eCryptfs.
Thanks,
Mike
--
Stefan Farestam
Mobile: +46 70 649 6838
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
eCryptfs-users mailing list
eCryptfs-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecryptfs-users