pass phrase

Chip Christian chip@princetonecom.com
Thu, 20 Jan 2000 13:46:32 -0500


If you're writing in Tcl, why not something like this:

    if  [ catch { exec gpg --batch --passphrase-fd 0 \
                      --output ${dst} --decrypt ${src} \
                      << "${passphrase}\n"} foo ] {
        send_user "${foo}\n"
        }

> On Thu, 20 Jan 2000, Werner Koch wrote:
>
> > On Thu, 20 Jan 2000, Frank Tobin wrote:
> >
> > > Please don't tell me you are using shell. Use Perl or some other
> > > system-level scripting language. There are modules on CPAN for
> >
> > What's wrong with a shell script and some AWKing - I like it
>
> Using an auxiliary file seemed like a weakening of security. I asked a
> friend of mine if this was so, he agreed it wasn't so good, which is why I
> wanted to avoid even the one-liner shell script I'm currently calling as a
> intermediary to gpg.
>
> Isn't there a way to suppress the argument listing? I know that, under
> FreeBSD current, you can't even see the environment unless you're root or
> the owning user.
>
> >
> >
>
> ----------------------------------------------------------------------------
> Chuck Robey | Interests include C & Java programming,
> New Year's Resolution: I | electronics, communications, and
> will not sphroxify gullible| signal processing.
> people into looking up | I run picnic.mat.net: FreeBSD-current(i386) and
> fictitious words in the | jaunt.mat.net : FreeBSD-current(Alpha)|
> dictionary. |
> ----------------------------------------------------------------------------
>
>