Back to product page

Encryption property


Determines encryption algorithm to be used with SFTP.

Type

An EncryptionsEnum enumeration. Specifies type of encryption to use.

Syntax

  • Basic
object.Encryption [= value]
The Encryption(object,value) syntax has these parts:
objectAn expression evaluating to an object of type wodSFTP.
valueAn EncryptionsEnum enumeration, as described in settings.

Remarks

The settings for value are:

Constant Value Description
encAny 0 Anything suitable, selected by wodSFTP component.
encDES 1 DES encryption
enc3DES 2 3DES encryption
encAES 3 AES encryption
encBLOWFISH 4 BLOWFISH encryption
encAES128 5 AES128 encryption
encAES192 6 AES192 encryption
encAES256 7 AES256 encryption
encCAST128 8 CAST128 encryption
encAEScbc 9 AES-cbc encryption
encAESctr 10 AES-ctr encryption


When set to anything other than encAny, during negotiation of a secure connection between wodSFTP and the remote server, wodSFTP will only allow the specified encryption algorithm to be used for encrypted data transmission. If this property is set to encAny (it is by default), any known (both by wodSFTP and the remote server) encryption may be used.

wodSFTP's implementation forces selection of encryption algorithms (for encAny value) in this order:

For SSH2 connections AES (any type) will be attempted first. If this fails, TripleDES will be used. If TripleDES is not available, Blowfish is selected. If it is also not available, the connection will be dropped. DES will not be negotiated unless you set the Encryption property to encDES. Most (new) servers don't support it due to its insecurity.

For a list of all supported encryption methods, please refer to the Encryption Algorithms enumeration page. Additional encryption methods can be added to wodSFTP on your request. If you have a requirement please feel free to send feedback to general@weonlydo.com.

Warning: changing this property also internally changes EncryptionList property.

Platforms

Windows