Added support for encrypting and downloading files