OpenOffice and document encryption portability
OpenOffice and document encryption portability
Posted Apr 2, 2012 16:40 UTC (Mon) by patrick_g (subscriber, #44470)In reply to: OpenOffice and document encryption portability by Creideiki
Parent article: OpenOffice and document encryption portability
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"
