Generates an SSH private key using the specified algorithm and a default key size.
Namespace:
Rebex.Net
Assembly:
Rebex.Networking (in Rebex.Networking.dll)
Syntax
Visual Basic |
---|
Public Shared Function Generate ( _ algorithm As SshHostKeyAlgorithm _ ) As SshPrivateKey |
C# |
---|
public static SshPrivateKey Generate( SshHostKeyAlgorithm algorithm ) |
Parameters
- algorithm
- Type: Rebex.Net..::..SshHostKeyAlgorithm
Key algorithm.