Zip Encrypt Ftp Backups - gHacks Tech News

Zip Encrypt Ftp Backups

Didier Stevens did it again with a pretty useful tool that can be used for backups that you want to place on another server on the internet. This is great if you want to separate site or operating system backups from the running server to avoid that both are not recoverable after a crash.

ZIPEncryptFTP is a C# command-line program. You will need the .NET 2.0 framework runtime to run it. It will write to the Application eventlog, so you need to run it the first time with administrator privileges, to register ZIPEncryptFTP with the eventlog.

To use the program you will have to use the command line. If you wanted to backup the contents of the directory c:\temp for instance, use the password:test to encrypt the folder(s) with AES and upload it to the ftp with the username test and the password pass you would do the following:

ZIPEncryptFTP /directory:c:\test /password:test /url: /ftpuser:test /ftppassword:pass

You can add more than one directory by simply adding another /directory parameter to ZipEncryptFtp.

You can use ZipEncryptFtp to encrypt the data again but it needs to be retrieved with a ftp program before. To decode the file you need to use the following command:

ZIPEncryptFTP /password:test /infile:test /

Everything is done in memory, no temporary (ZIP) files are created. The ZIP file is created and encrypted in memory.

The password is converted to a 256 bit key, and the initialization vector is generated at random. The effect of this is that encrypting the same file twice will yield 2 completely different encrypted files.

This can be very useful if you have access to ftp servers with enough storage space that you want to use for backup purposes. The ftp servers can run in a local network or remotely.

It is highly recommended to encrypt the data so that no one but authorized users can access it.

We need your help

Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.

If you like our content, and would like to help, please consider making a contribution:


  1. netking said on February 18, 2007 at 10:03 pm

    Can this be scheduled with Scheduled Tasks ? That would be great to make this automatic, like backuping every night…

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

Please note that your comment may not appear immediately after you post it.