Send/receive Encrypt/Decrypt Local File
Send/receive Encrypt/Decrypt Local File
We need to encrypt data at rest. So, when uploading using SFTP is there an event to capture the local file to decrypt before sending and likewise I was hoping to use oncreatelocalfile on the download to encrypt the local file before saving. Thank you
Re: Send/receive Encrypt/Decrypt Local File
To decrypt data of a local file and load the decrypted file to the server, you can use the following algorithm:
1. Create a remote file using the TScSFTPClient.OpenFile method.
2. Read data from the local file and decrypt it.
3. Write decrypted data to the remote file using the TScSFTPClient.WriteFile method.
4. Close the remote file using the TScSFTPClient.CloseHandle method.
To encrypt data of the remote file and write encrypted data to a local file, you can use the following algorithm:
1. Open the remote file using the TScSFTPClient.OpenFile method.
2. Read data from the remote file using the TScSFTPClient.ReadFile method.
3. Encrypt data and write it to a local file.
4. Close the remote file using the TScSFTPClient.CloseHandle method.
1. Create a remote file using the TScSFTPClient.OpenFile method.
2. Read data from the local file and decrypt it.
3. Write decrypted data to the remote file using the TScSFTPClient.WriteFile method.
4. Close the remote file using the TScSFTPClient.CloseHandle method.
To encrypt data of the remote file and write encrypted data to a local file, you can use the following algorithm:
1. Open the remote file using the TScSFTPClient.OpenFile method.
2. Read data from the remote file using the TScSFTPClient.ReadFile method.
3. Encrypt data and write it to a local file.
4. Close the remote file using the TScSFTPClient.CloseHandle method.