Back to product page
- Introduction
- Overview
- License agreement
- Classes
- Enumerations
- wodSFTPdll
- Create function
- Destroy function
- Methods
- Abort
- About
- AppendData
- AppendDataLen
- AppendFile
- Connect
- DeleteFile
- DeleteFiles
- Disconnect
- ExtendedCmd
- GetAttributes
- GetData
- GetDataAt
- GetDataToBuffer
- GetDataToBufferAt
- GetFile
- GetFileAt
- GetFiles
- ListAttributes
- ListDir
- ListNames
- LoadPrivateKey
- LoopFiles
- MakeDir
- PutData
- PutDataAt
- PutDataLen
- PutDataLenAt
- PutFile
- PutFileAt
- PutFiles
- RealPath
- RemoteClose
- RemoteOpen
- RemoteRead
- RemoteWrite
- RemoveDir
- Rename
- SetAttributes
- Properties
- Authentication
- Blocking
- BufferSize
- ClientName
- Compression
- Encryption
- EncryptionList
- ErrorText
- Extensions
- FIPS
- HMacList
- Hostname
- KeyExchangeList
- KeySignatureList
- LastError
- ListItem
- LocalPath
- Login
- MaxTransferRate
- MyHostname
- MyIP
- Password
- Port
- PrivateKey
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RemoteIdentification
- RemotePath
- Resume
- ServerErrorCode
- ServerErrorText
- State
- StateText
- Timeout
- Timezone
- TransferMode
- TransferRate
- TransferTime
- UseIPv6
- Version
- Callbacks
- How to get support
- Using callbacks
- Technical information
- Error list
Encryption function
Determines the encryption algorithm to be used with SFTP.
Type
A Long value. If successful, 0 is returned, otherwise error as specified hereSyntax
- C
long Sftp_GetEncryption(void *Sftp, EncryptionsEnum *pVal);long Sftp_SetEncryption(void *Sftp, EncryptionsEnum newVal);
The Encryption(void *Sftp,EncryptionsEnum *pVal, newVal) syntax has these parts:
The Encryption(void *Sftp,EncryptionsEnum *pVal, newVal) syntax has these parts:
void *Sftp | Handle of the created Sftp instance. |
EncryptionsEnum *pVal, newVal | An 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 |
Warning: changing this property also internally changes EncryptionList property.