Saves the private key into the supplied stream in the specified format.
Namespace:
Rebex.Security.Cryptography.Pkcs
Assembly:
Rebex.Common (in Rebex.Common.dll)
Syntax
Visual Basic |
---|
Public Sub Save ( _ fileName As String, _ password As String, _ format As PrivateKeyFormat _ ) |
C# |
---|
public void Save( string fileName, string password, PrivateKeyFormat format ) |
Parameters
- fileName
- Type: System..::..String
A file to which to save the public key.
- password
- Type: System..::..String
Password to encrypted the private key, or null if no encryption desired.
- format
- Type: Rebex.Security.Cryptography.Pkcs..::..PrivateKeyFormat
Private key file format.