Return a copy of the passed in secret key ring, with the master key and sub keys encrypted
using a new password and the passed in algorithm.
Namespace: Org.BouncyCastle.Bcpg.OpenPgpAssembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0
Syntax
C# |
---|
public static PgpSecretKeyRing CopyWithNewPassword( PgpSecretKeyRing ring, char[] oldPassPhrase, char[] newPassPhrase, SymmetricKeyAlgorithmTag newEncAlgorithm, SecureRandom rand ) |
Visual Basic |
---|
Public Shared Function CopyWithNewPassword ( _ ring As PgpSecretKeyRing, _ oldPassPhrase As Char(), _ newPassPhrase As Char(), _ newEncAlgorithm As SymmetricKeyAlgorithmTag, _ rand As SecureRandom _ ) As PgpSecretKeyRing |
Visual C++ |
---|
public: static PgpSecretKeyRing^ CopyWithNewPassword( PgpSecretKeyRing^ ring, array<wchar_t>^ oldPassPhrase, array<wchar_t>^ newPassPhrase, SymmetricKeyAlgorithmTag newEncAlgorithm, SecureRandom^ rand ) |
Parameters
- ring
- Type: Org.BouncyCastle.Bcpg.OpenPgp..::..PgpSecretKeyRing
The PgpSecretKeyRing to be copied.
- oldPassPhrase
- Type: array<System..::..Char>[]()[][]
The current password for key.
- newPassPhrase
- Type: array<System..::..Char>[]()[][]
The new password for the key.
- newEncAlgorithm
- Type: Org.BouncyCastle.Bcpg..::..SymmetricKeyAlgorithmTag
The algorithm to be used for the encryption.
- rand
- Type: Org.BouncyCastle.Security..::..SecureRandom
Source of randomness.