Decrypts a PGP encrypted message.
Namespace: DidiSoft.PgpAssembly: DidiSoft.Pgp (in DidiSoft.Pgp.dll) Version: 1.7.3.35547
Syntax
| C# |
|---|
public string DecryptString( string encryptedString, string privateKeyAscii, string privateKeyPassword ) |
| Visual Basic |
|---|
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 |
|---|---|
| DidiSoft.Pgp..::..PGPException | if an OpenPGP related error has occurred |
| NonPGPDataException | if the input data is not a valid OpenPGP encrypted message |