Rsa.SaveEncPrivateKey Method (String, String, Int32, String, Rsa.PbeOptions, Rsa.Format)
Save a private key string to a PKCS-8 EncryptedPrivateKeyInfo file [DEPRECATED].
Syntax
[C#]
public static int SaveEncPrivateKey(
string outputFile,
string privateKey,
int iterationCount,
string password,
Rsa.PbeOptions pbeOption,
Rsa.Format format
)
[VB.NET]
Public Shared Function SaveEncPrivateKey ( _
outputFile As String, _
privateKey As String, _
iterationCount As Integer, _
password As String, _
pbeOption As Rsa.PbeOptions, _
format As Rsa.Format _
) As Integer
Parameters
- outputFile
- Name of file to create
- privateKey
- Private key in internal format
- iterationCount
- Iteration count to be used when encrypting file
- password
- Password string
- pbeOption
- Type: Rsa.PbeOptions
Type of password-based encryption to use [default = pbeWithSHAAnd3-KeyTripleDES-CBC]
- format
- Type: Rsa.Format
File format
Return Value
If successful, the return value is zero; otherwise it returns a nonzero
error code
See Also
VB6/C equivalent: RSA_SaveEncPrivateKey
[Contents] [Index]