var alg = new AsymmetricKeyAlgorithm(); alg.GenerateKey(AsymmetricKeyAlgorithmId.RSA, 2048); byte[] keyData = alg.GetPrivateKey().ToBytes(); var key = new SshPrivateKey(keyData);
Welcome to Q&A forum for C# and VB.NET developers working with following .NET components:
Applications:
If you need immediate assistance, please contact us directly.