Back to product page

Encryption property


Determines encryption algorithm to be used with SSH.

Type

EncryptionMethods enumeration value. Represents allowed encryption method.

Syntax

  • C#
  • VB.NET
EncryptionMethods Encryption {get; set; };

Property Encryption As EncryptionMethods

Remarks

When set to anything else than EncryptionMethods.Any, during negotiation of secure connection between wodSSH.NET and remote server, wodSSH.NET will allow only specified encryption algorithm to be used for encrypted data transmission. If this property is set to EncryptionMethods.Any (it is by default), any known (both by wodSSH.NET and remote server) encryption will be used.

wodSSH.NET implementation forces selection of encryption algorithms (for EncryptionMethods.Any value) in this order:
  1. For SSH1 connection it will try to negotiation TripleDES algorithm. If it fails, it will try Blowfish. If it is not available (by remote server), it will fallback to DES. Please note that DES algorithm is declared as 'insecure', so you should avoid using it if possible.
  2. For SSH2 connection first AES (any type of it) will be negotiated. If it fails, TripleDES will be used. If not available, Blowfish is selected. If it is also not available, connection will be dropped. DES will not be negotiated at all because most of (new) servers don't support it anyway (due to it's insecurity).
For list of all supported encryption methods, look here. Additional encryption methods can be added to wodSSH.NET on your request. If it is needed, feel free to send feedback go general@weonlydo.com.

Warning: changing this property also internally changes EncryptionList property.

Platforms

Windows