If you are not yet familiar with PGP or don't have a version running on the palmtop yet, you may want to look at http://www.cryptography.org/getpgp.htm or http://www.cryptography.org/getpgp.txt. Also, check out a GUI for PGP at http://sac.uky.edu/~wally/lxpgp.zip.
The main problem with making PGP and POST/LX work together is the memory limitations of DOS. The key to solve those problems is MaxDOS.
This text assumes you already have the PGP software by Philip Zimmerman and have installed it. It also assumes you have installed MaxDOS. Last but not least, this text assumes you are using PE (PalEdit) as your text editor for POST/LX.
Before starting POST/LX (and WWW/LX), make sure MaxDOS is running (e.g. by installing it in AUTOEXEC.BAT using
MAXDOS -lAlso make sure, in CONFIG.TXT (the configuration file for PGP), you have set up
CharSet = Latin1 Pager = pe (or whatever your editor is) Verbose = 0 (unless you want PGP to be chatty)Now create four batch files and make sure they are on the DOS path. The first batch file adds an ASCII signature to a text. It is named PGPSIGN.BAT:
@echo off SET PGPPATH=c:\pgp c:\pgp\PGP.EXE -sta %1 -o scratch.This assumes PGP.EXE is in C:\PGP. Adjust the paths to whatever is appropriate.
The second batch file encodes a complete message. It is named PGPENC.BAT:
@echo off SET PGPPATH=c:\pgp c:\pgp\PGP.EXE -esa %1 -o scratch.Again, adjust the paths. The third batch file is used to decode an encoded message. It is named PGPDEC.BAT:
@echo off SET PGPPATH=c:\pgp c:\pgp\PGP.EXE -m %1Note that it uses the -m option, which tells PGP to open a decoded file in PE (or whatever you have set up as "Pager" in CONFIG.TXT) so that you can read it and save it if you want.
The last batch file, named PGPVERY.BAT verifies a signature:
@echo off SET PGPPATH=c:\pgp c:\pgp\PGP.EXE %1Now we need to link all together. In PE.CFG, add the following lines to the [Filter] section:
PGP &Sign = maxdos d:\dos\command.com /c PGPSIGN.BAT %s PGP &Encode = maxdos d:\dos\command.com /c PGPENC.BAT %sAnd in POST.CFG, you need to add to the [External] section:
PGP &Verify=maxdos d:\dos\command.com /c pgpvery.bat $f $$ &PGP Decode=maxdos d:\dos\command.com /c pgpdec.bat $fThat's it.
Prepared by Andreas Garzotto