I need a windows script to automate encryption/decryption of files that are uploaded/downloaded to/from SFTP server. So, when I initiate the transfer of a file from my local folder to the remote folder the file needs to show up on the remote folder as an encrypted file. Likewise, when I download a file from the remote folder, it needs to initiate the decryption automatically so the file shows up decrypted on the local folder.
I'm using the WinSCP client (it supports scripting see: [url removed, login to view]). I have GPG for windows installed ([url removed, login to view]). A similar setup is described here, but I need it localized for the WinSCP client. See: [url removed, login to view]