NSDPGP.DLL v1.00
COM Interface for PGP conventional
encryption (IDEA, CAST5, 3DES).
PGP 6.0.2 (WIN32)
Freeware. Freely distributable.
Copyright (c) 1999, Gerard R Thomas.
email:<grt@wow.net><grt@geocities.com>
http://community.wow.net/grt/nsdpgp.html

This program is "freeware" and may be used and copied without
fee or obligation.
See the license.txt for license information.

Installation:
The nsdpgp.zip file contains these files:

file_id.diz (package information)
readme.txt  (program information)
license.txt (license)
nsdpgp.dll (COM Interface DLL)
nsdpgp.dll.sig (PGP signature)

Copy the nsdpgp.dll file to the \System (Windows 95/98) or 
\System32 (Windows NT 4.0) directory.

Register the file by typing into the Start | Run
"REGSVR32 NSDPGP.DLL"

Uninstall:
Unregister the file by typing into the Start | Run
"REGSVR32 /U NSDPGP.DLL"
Delete the nsdpgp.dll file.

Operation:
NSDPGP.DLL is a COM In-Process Automation Server. Its interface
provides conventional (IDEA, CAST5, 3DES) file encryption, decryption
and wiping methods (via PGP 6.0.2 [WIN32]) to Visual Basic, MS Office VBA
and the Windows Scripting Host.

The three methods are
EncryptFile(cipher,infile,outfile,password)
DecryptFile(infile,outfile,password)
WipeFile(infile)

parameters:
cipher is an integer that indicates the desired conventional cipher
algorithm. Valid values are 1 (for IDEA), 2 (for CAST5) and 3 (for 3DES)
infile and outfile are strings giving the filenames (including full path)
password is a string giving the conventional password

Example Usage:

(a) using the Windows Scripting Host and JScript

// EXAMPLE.JS
pgpobj = WScript.CreateObject("NSDPGP.NSDPGP");
pgpobj.EncryptFile(2,"D:\\Reports\\JUL99.DOC","D:\\Reports\\JUL99.DOC","testing");
pgpobj.WipeFile("D:\\Reports\\SCRATCHPAD.XLS");
//end of file

(b) using Visual Basic

(1) choose Standard EXE project
(2) choose Project | References and check the "NSDPGP PGP COM Interface Type Library"
    checkbox.
(3) place a commandbutton control on Form1
(4) enter the following code
 
Private Sub Command1_Click()
 Dim myRef as new NSDPGP.NSDPGP
 myRef.DecryptFile "D:\Reports\JUL99.DOC", "D:\Reports\Scratch.DOC", "testing"
End Sub

(5) run the code and click on the button

Note: 
PGP 6.0.2 must be installed on the system for this interface to work.
It is not a standalone encryptor.

Note:
The PGP signature may be used to verify the integrity of the 
executable. The executable is signed with my PGP DSS key.
[4096/1024 bit DH/DSS <grt@wow.net> <grt@geocities.com> 
Key ID: 0xFF7155A2 Key fingerprint:
61DF 0468 0570 4615 8FF5  7530 5B3C 2165 FF71 55A2]

1999 05 09
Gerard R Thomas
Port of Spain
Trinidad and Tobago
