OpenPGP Signs file.
Namespace:
DidiSoftAssembly: PGPLib (in PGPLib.dll) Version: 1.6.3.19546
Syntax
| C# |
|---|
public void SignFile( string fileName, Stream privateKeyStream, string privateKeyPassword, Stream outStream, bool asciiArmor ) |
| Visual Basic (Declaration) |
|---|
Public Sub SignFile ( _ fileName As String, _ privateKeyStream As Stream, _ privateKeyPassword As String, _ outStream As Stream, _ asciiArmor As Boolean _ ) |
| Visual C++ |
|---|
public: void SignFile( String^ fileName, Stream^ privateKeyStream, String^ privateKeyPassword, Stream^ outStream, bool asciiArmor ) |
Parameters
- fileName
- Type: System..::.String
File Name to be signed (absolute or relative path)
- privateKeyStream
- Type: System.IO..::.Stream
Private Key as stream, used for signing
- privateKeyPassword
- Type: System..::.String
Private key password
- outStream
- Type: System.IO..::.Stream
Ouput stream of the PGP Signed file
- asciiArmor
- Type: System..::.Boolean
if true, output file is in ASCII armored format
Exceptions
| Exception | Condition |
|---|---|
| PgpException | if an error has occured |
| System.IO..::.IOException | if an IO problem has occured |