Click or drag to resize
MimeKit

OpenPgpContextGetPasswordForKey Method

Get the password for a secret key.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
protected abstract string GetPasswordForKey(
	PgpSecretKey key
)

Parameters

key  PgpSecretKey
The secret key.

Return Value

String
The password for the secret key.
Exceptions
ExceptionCondition
OperationCanceledException The user chose to cancel the password request.
Remarks
Gets the password for a secret key.
See Also