Re: YARN and PGP5?

From: Ian D. Goodyer (goodyer@well.ox.ac.uk)
Date: Sun, 04 Jan 1998 17:14:44 +0000

-----BEGIN PGP SIGNED MESSAGE-----

On Fri, 02 Jan 1998 09:53:44 +0800 tdb@delta1.deltanet.com (Tom D. Baccanti) wrote:
>I grabbed the dos version of pgp5 and it looks like it won't
>work as it needs some parameters passed to the commandline like
>receivers address etc and the pgpe.bat file does not do this or
>if it does it is beyond my expertise with pgp.
>
>I have a pgpe.exe, pgpk.exe, pgpv.exe and a pgpo.exe file now.
>I think the only one to use is pgpo.exe as this is emulates
>2.73.
>
>if anyone wants to jump in here please do.

OK. I'll have a bash. For decryption you need to use pgpv.exe.
You probably have a line a bit like:

decrypt=%d\pgpf.bat %f %o

in your yarn config file. This calls pgpf.bat in your yarn directory and
parses a file containing your message (%f) as the first argument and a
filename for the output file (%o) as the second argument.

The pgpv man file says that this is the format it needs:

pgpv [-dfKmqv] [-z|-zs] [-o <outfile>] file ...

so I reckon that if your pgpf.bat looked something like this

@echo off
pgpv -o %2 %1
pause

it should work.

Similarly if you have this in your config file:
# program that decrypts and displays a message
decrypt-view=%d\pgpd.bat %f

then pgpd.bat should look something like this:

@echo off
del temp.txt >nul
pgpv -o temp.txt %1
pause
type temp.txt |more
pgp -w temp.txt

where pgp.exe is the old 2.6.? version that wipes your plain text file
once you have looked at it.

Encryption is a bit trickier

encrypt=cmd /c pgpenc.cmd %f %o

sends pgpenc.cmd the file containg my message, the output filename and
then the list of all the recipients in the To:, Cc: and Bcc: fields. In
OS/2 it is pretty easy to write a little REXX script to chop these up and
feed them to pgpe.exe. I haven't done it yet but it will be something
like this:

e.g.

call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
parse arg filename output address1 address2 address3 address4 address5
/* Next we need to do some error checking to see how many addresses we
are sending to and adjust next line appropriately */
pgpe -r address1 -r address2 -r address3 -r address4 -r address5 -o output filename

If anyone fancies knocking a REXX script up that would be great.

Sorry, not sure how to do this in DOS. Anybody?

Thanks for listening. Sorry if this went on too long ;)
Ian

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ig beta
Charset: cp850

iQCVAwUBNK/IO6JSmGBRGHaRAQGT/QQArBvocmXXbeiMpFkkLk8ndyt+AfHJ57x4
chSnXl5yFw0j40CA9bTrDW2IGBvsVWEXIo0bpG15zOROwIw+8v0O+Zzjk0IvG45g
2NnUV2VUsEoiNCmXlGx3TvxsinDcrdj2hvvRhtG5TS1oAXCGh/xdtbroyEF+/fzB
V9nvqoYw164=
=TW+I
-----END PGP SIGNATURE-----