Decrypts a PGP encrypted message.
Namespace:
DidiSoftAssembly: PGPLib (in PGPLib.dll) Version: 1.6.3.19546
Syntax
| C# |
|---|
public string DecryptString( string encryptedString, string privateKeyAscii, string privateKeyPassword ) |
| Visual Basic (Declaration) |
|---|
Public Function DecryptString ( _ encryptedString As String, _ privateKeyAscii As String, _ privateKeyPassword As String _ ) As String |
| Visual C++ |
|---|
public: String^ DecryptString( String^ encryptedString, String^ privateKeyAscii, String^ privateKeyPassword ) |
Parameters
- encryptedString
- Type: System..::.String
OpenPGP encrypted message
- privateKeyAscii
- Type: System..::.String
Private key in ASCII armored format
- privateKeyPassword
- Type: System..::.String
Private key password
Return Value
Decrypted string
Exceptions
| Exception | Condition |
|---|---|
| PgpException | if an error has occured |