Rsa.MakeKeys Method (String, String, Int32, Rsa.PublicExponent, Int32, String, Rsa.PbeOptions, Boolean)
Generate an RSA public/private key pair.
Syntax
[C#]
public static int MakeKeys(
string publicKeyFile,
string privateKeyFile,
int bits,
Rsa.PublicExponent exponent,
int iterCount,
string password,
Rsa.PbeOptions cryptOption,
bool showProgress
)
[VB.NET]
Public Shared Function MakeKeys ( _
publicKeyFile As String, _
privateKeyFile As String, _
bits As Integer, _
exponent As Rsa.PublicExponent, _
iterCount As Integer, _
password As String, _
cryptOption As Rsa.PbeOptions, _
showProgress As Boolean _
) As Integer
Parameters
- publicKeyFile
- Output filename for public key
- privateKeyFile
- Output filename for (encrypted) private key
- bits
- Required key modulus size in bits (min 96)
- exponent
- Type: Rsa.PublicExponent
Exponent (Fermat Prime)
- iterCount
- Iteration count for encrypted private key
- password
- Password string for encrypted private key
- cryptOption
- Type: Rsa.PbeOptions
Option to specify encryption algorithm for private key
- showProgress
- Indicate progress in console
Return Value
Examples (VB.NET)
See
Example1
See Also
VB6/C equivalent: RSA_MakeKeys
[Contents] [Index]