Hello,
As Frank says, this is easily fixed using your own FileServer
implementation. I made some changes in the Default FileSystem impl. in
order to make this task simpler  by extending NativeFtpFile. In our
case,  we only needed to extend two methods:

public InputStream createInputStream(final long offset) throws
IOException  (  this one would open a "decryption stream" over the
regular FileInputStream so the users get the plain files back).

public OutputStream createOutputStream(final long offset)  ( this one
would open an Encryption stream over the regular FileOutputStream so
the received files are stored encrypted).


But please, take into account that our solution probably breaks
compatibility with "ascii mode", "z mode" (compression) and  even REST
support - we do not need any of these features.









2010/7/15 Frank van der Kleij <[email protected]>:
>
>
> You can easily plug in your own file system via the configuration file.
>
> In your implementation you can just extend the standard (at least if you
> want to store the files in the local filesystem) and do your encryption and
> decryption.
>
> Frank
>
>
>> Date: Wed, 14 Jul 2010 21:49:46 -0400
>> Subject: keep user files on ftp server always encrypted
>> From: [email protected]
>> To: [email protected]
>>
>> Hi,
>>
>> I'm wondering if it's possible to keep user data always encrypted on the ftp
>> server in current implementation.
>>
>> If not, how much efforts it'll take and can it be prioritized in any other
>> way than voting?
>>
>> Example:
>> When user upload a plain file to ftp - it encrypts file and stores encrypted
>> file instead of plain one. And otherwise when download.
>>
>>
>> Thanks,
>> K.
>
> _________________________________________________________________
> New Windows 7: Find the right PC for you. Learn more.
> http://windows.microsoft.com/shop

Reply via email to