|
|
Log in / Subscribe / Register

OpenOffice and document encryption portability

OpenOffice and document encryption portability

Posted Mar 30, 2012 11:22 UTC (Fri) by patrick_g (subscriber, #44470)
In reply to: OpenOffice and document encryption portability by gerdesj
Parent article: OpenOffice and document encryption portability

>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.


to post comments

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