Decrypts a PGP encrypted message.

Namespace: DidiSoft.Pgp
Assembly: 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

ExceptionCondition
DidiSoft.Pgp..::..PGPExceptionif an OpenPGP related error has occurred
NonPGPDataExceptionif the input data is not a valid OpenPGP encrypted message

See Also