Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Bash redirection problem
- Date: Tue, 27 Mar 2007 10:35:43 +0900 (JST)
- From: Curt Sampson <cjs@example.com>
- Subject: Re: [tlug] Bash redirection problem
- References: <46085D9C.5020509@example.com>
On Mon, 26 Mar 2007, Stuart Luppescu wrote:
I'm trying to write a bash script to automate encryption and decryption of a gnumeric spreadsheet. I thought I'd feed gpg the passphrase from a file like this:
gpg -d ccinfo.gnumeric.gpg < $HOME/cc/passphrase > $HOME/cc/ccinfo.gnumeric
But each time I run the script it prompts me to enter my passphrase.
GPG tries pretty hard to make sure it's asking for the passphrase on a terminal; in particular, it's opening /dev/tty instead of using standard input and output.
If you don't need public key encryption, you may be better off using something else to do symmetric encryption; gpg's user interface is pretty awful (and this is by far its biggest security flaw).
Failing that, put the decryption key in a separate keyring that has no password on it.
I presume you *are* using a key entirely separate from anything you use for more serious applications, right? A key is only as secure as the weakest way in which it's used, and everything encrypted or signed with that key is only that secure as well.
cjs -- Curt Sampson <cjs@example.com> +81 90 7737 2974
- References:
- [tlug] Bash redirection problem
- From: Stuart Luppescu
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] No sound in Flash... help not helping [SOLVED]
- Next by Date: Re: [tlug] No sound in Flash... help not helping [SOLVED]
- Previous by thread: Re: [tlug] Bash redirection problem
- Next by thread: [tlug] Shocking
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links