OpenPGP signs a file.

Namespace:  DidiSoft
Assembly:  PGPLib (in PGPLib.dll) Version: 1.6.3.19546

Syntax

C#
public void SignFile(
	string fileName,
	KeyStore keyStore,
	string userId,
	string privateKeyPassword,
	string signedFileName,
	bool asciiArmor
)
Visual Basic (Declaration)
Public Sub SignFile ( _
	fileName As String, _
	keyStore As KeyStore, _
	userId As String, _
	privateKeyPassword As String, _
	signedFileName As String, _
	asciiArmor As Boolean _
)
Visual C++
public:
void SignFile(
	String^ fileName, 
	KeyStore^ keyStore, 
	String^ userId, 
	String^ privateKeyPassword, 
	String^ signedFileName, 
	bool asciiArmor
)

Parameters

fileName
Type: System..::.String
File Name to be signed (absolute or relative path)
keyStore
Type: DidiSoft..::.KeyStore
KeyStore instance
userId
Type: System..::.String
User Id of the form "name (comment) <email address>". The first Public key with this userId located in keyStore is used for encryption.
privateKeyPassword
Type: System..::.String
Private key password
signedFileName
Type: System..::.String
File name of the OpenPGP Signed file (absolute or relative path)
asciiArmor
Type: System..::.Boolean
if true, output file is in ASCII armored format

Exceptions

ExceptionCondition
PgpExceptionif an error has occured
System.IO..::.IOExceptionif an IO problem has occured

See Also