Changes private key password.
This method is equivalent to the GnuPG commands:
gpg --edit-key [userId]
Command>passwd
Namespace:
DidiSoftThis method is equivalent to the GnuPG commands:
gpg --edit-key [userId]
Command>passwd
Assembly: PGPLib (in PGPLib.dll) Version: 1.6.3.19546
Syntax
| C# |
|---|
public virtual void ChangePrivateKeyPassword( long keyId, string oldPassword, string newPassword ) |
| Visual Basic (Declaration) |
|---|
Public Overridable Sub ChangePrivateKeyPassword ( _ keyId As Long, _ oldPassword As String, _ newPassword As String _ ) |
| Visual C++ |
|---|
public: virtual void ChangePrivateKeyPassword( long long keyId, String^ oldPassword, String^ newPassword ) |
Parameters
- keyId
- Type: System..::.Int64
Key Id of the key pair
- oldPassword
- Type: System..::.String
current password of the private key
- newPassword
- Type: System..::.String
new password of the private key