Archive encrypted files from SFTP with PGP

File TransferDeveloper Tool

What it does

When a new or updated file appears in an SFTP directory, this automation checks if the filename contains test. If it matches, the file is downloaded, encrypted with PGP, and uploaded back to the directory.

Who it's for

Security teams who need to encrypt sensitive files automatically without opening SFTP manually.

How teams use this

Protect test data files automatically

Files with test in the name are encrypted and stored on SFTP without anyone having to remember to do it manually. The process runs every time a new file arrives in the directory.

Encrypt files for different naming patterns

Change the condition from test to another keyword like confidential or restricted so different file types get encrypted based on your naming convention without rebuilding the flow.

Only encrypt files above a size threshold

Add a condition to check file size before encrypting so only files above a certain threshold are processed. This requires adding a file size filter to step two.

How it works

  1. Monitor SFTP directory for new files. Watch an SFTP server directory for any new or updated file that appears there so the automation can process it.
  2. Check if filename contains test. Evaluate the filename from the SFTP server to see if it contains the word test. Only files that match this condition move forward in the flow.
  3. Download file from SFTP server. Retrieve the matching file from the SFTP directory so it can be encrypted with the next step in the process.
  4. Encrypt file with PGP encryption. Apply PGP encryption to the downloaded file to protect its contents before it is stored back on the server.
  5. Upload encrypted file to SFTP server. Send the encrypted file back to the SFTP directory so it replaces the original unencrypted version.