Sample Visual Basic
Code to encrypt and sign a file.
Where Cryptocx1 is an instance of a Cryptocx Control.
''
'' Encrypt and Sign a file
''
Dim OutPut As String
Cryptocx1.SourceFile = Me.txtSourceFile.Text
Cryptocx1.DestinationFile = Me.txtDestinationFile.Text
Cryptocx1.Password = Me.txtPassword.Text
Cryptocx1.KeyFolder = Me.txtKeyring.Text
Cryptocx1.UserID = Me.txtEncryptID.Text
Cryptocx1.SignID = Me.txtSignID.Text
OutPut = Cryptocx1.PGPEncryptSignFile
If OutPut = "TRUE" Then
'' Alls ok, the file was encrypted and signed
Else
MsgBox OutPut
End If
|