|
|
Log in / Subscribe / Register

OpenOffice and document encryption portability

OpenOffice and document encryption portability

Posted Mar 29, 2012 21:41 UTC (Thu) by gerdesj (subscriber, #5446)
In reply to: OpenOffice and document encryption portability by robert_s
Parent article: OpenOffice and document encryption portability

>>I've never quite understood the point of encryption built into file formats.
>>Seems to me it just inhibits flexibility and encourages poor key management practices / weak passwords.

That's because you are almost certainly a sysadmin.

To most users of a system a document is the important thing not its method of storage or handling as a bunch of bytes. It is a thing in and of itself.

If an end user wants to make their document "eyes only" then the feature needs to be built in.

Remember, we generally run these things for users 8)

I agree with your assertion that it generally results in poor passwords. Perhaps integration with system provided password managers (KWallet/Gnome's err whatever its called/Windows probably has one as well) would be a useful extension. Chrom{e|ium} does this nicely.

Cheers
Jon


to post comments

OpenOffice and document encryption portability

Posted Mar 30, 2012 11:22 UTC (Fri) by patrick_g (subscriber, #44470) [Link] (5 responses)

>To most users of a system a document is the important thing not its method of storage or handling as a bunch of bytes. It is a thing in and of itself.

Then use ccrypt. It can encrypt/decrypt all documents (not only ODF files) and it's very easy to use with a Nautilus script (just right click on the file and choose to encrypt or decrypt it).
No need to care about AOO/LO built-in system.

OpenOffice and document encryption portability

Posted Mar 30, 2012 20:21 UTC (Fri) by Creideiki (subscriber, #38747) [Link] (4 responses)

How does it do that without leaving the plaintext around on disk? From a quick skimming of its web page, there is no obvious answer - it seems the program just does stdin/stdout streaming. Is there some GNOME magic to hook that into opening files?

OpenOffice and document encryption portability

Posted Apr 2, 2012 16:40 UTC (Mon) by patrick_g (subscriber, #44470) [Link] (3 responses)

>How does it do that without leaving the plaintext around on disk?

It overwrite the existing plaintext file.

>Is there some GNOME magic to hook that into opening files?

I use a Nautilus script (I'm not the author, I found it on the web):

#!/bin/bash
#
# This script encrypts file(s) or directories with ccrypt
#
# Distributed under the terms of GNU GPL version 2 or later
#
# We put ccrypt full path in environment variable here to avoid
# problems with variables substitution when creating files
CCRYPT_PATH=/usr/bin/ccrypt
#
quoted=$(echo -e "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | awk 'BEGIN { FS = "\n" } { printf "\"%s\" ", $1 }' | sed -e s#\"\"##)
#
# Call Gnome Terminal to execute ccrypt
gnome-terminal -t "Chiffrage de fichier(s)" --hide-menubar -e "$CCRYPT_PATH -e -s -v -t -r -P 'Entrez le password pour chiffrer: ' $quoted"

OpenOffice and document encryption portability

Posted Apr 2, 2012 17:59 UTC (Mon) by anselm (subscriber, #2796) [Link] (2 responses)

It overwrite the existing plaintext file.

The problem with that sort of approach is that, depending on the nature of the file system you're using, there is no guarantee that, when overwriting a file, the new data will actually end up in the same place on the disk that the old data occupied. This may hold for older systems such as ext2, but with modern journaling or copy-on-write file systems it may no longer be the case.

What may well happen here is that, although it looks as if the file was overwritten in place, the ciphertext actually ended up elsewhere on the disk and the plaintext data can still be found if one knows where to look (or has a lot of patience).

OpenOffice and document encryption portability

Posted Apr 2, 2012 18:48 UTC (Mon) by khim (subscriber, #9252) [Link]

And even if your filesystem overwrites file in place your SSD firmware will most definitely keep plaintext version around.

Sure, you may need some soldering skills to pull this information from the chips but it's not that hard.

OpenOffice and document encryption portability

Posted Apr 2, 2012 19:02 UTC (Mon) by patrick_g (subscriber, #44470) [Link]

>What may well happen here is that, although it looks as if the file was overwritten in place, the ciphertext actually ended up elsewhere on the disk and the plaintext data can still be found

Of course (and ccrypt author admit it in the FAQ). But here we are talking about **document** security: I encrypt a file with ccrypt and send it to someone, he can decrypt it with ccrypt. Perfect security and no need for encryption built into file formats (like with ODF).

If you want **physical** security obviously you must use something like full disk encryption (encfs or another solution).


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds