forum.coppermine-gallery.net

Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 JUpload by etienne_sf => Topic started by: spock on October 17, 2009, 05:22:32 pm

Title: How to add encryption in Jupload applet ?
Post by: spock on October 17, 2009, 05:22:32 pm
Hello Everyone ! :)

Did anybody here try to modify the code of the Jupload applet to add some file encryption mechanism during file upload  ?

I did a search on this forum but found nothing related to this topic  :-\
I have downloaded last Jupload source code version on svn repository , compiled the project with eclipse and read the package.html documentation in "filedata" directory and also had a look at the PictureFileData.java file  BUT it seems that a temp file is always used in "beforeUpload" function.

What I would like to achieve is to do "on the fly" encryption by returning an encrypted stream instead of the current file stream.

Is there a way to do that ?  Did anyone already implement some encryption (even with a temp file this would be a first step) ?

Thanks for any help  because I'm a bit lost ...  :-[


Title: Re: How to add encryption in Jupload applet ?
Post by: spock on October 20, 2009, 01:27:43 am
No anwser so far  :-\

Just doing a little up !  ;)
Title: Re: How to add encryption in Jupload applet ?
Post by: etienne_sf on October 20, 2009, 11:54:18 am
Hi,

  You were right to do an 'up' here...  I missed this one.

If your question is just about the applet, which is what I expect, as, otherwise, you also have to manage the PHP part of this plugin, then the relevant forum is:
http://sourceforge.net/forum/forum.php?forum_id=199107 (http://sourceforge.net/forum/forum.php?forum_id=199107)

  AFAIK, nobody added such a function in the applet.

About temporary files: it's necessary, to use native Java picture coding/decoding. So: it's useful only if you have to transform pictures (rotation, resizing, metadata management). Otherwise, there should be no temporary file.

Etienne
Title: Re: How to add encryption in Jupload applet ?
Post by: spock on October 20, 2009, 12:02:56 pm
Ok thanks etienne !

I'll try to post to the other forum.

Just a side note: I don't want to perform encryption on the php side but inside the applet  :-\

Title: Re: How to add encryption in Jupload applet ?
Post by: etienne_sf on October 20, 2009, 01:08:49 pm
Yep, of course.

  But you need to decrypt on server side. If your server side is Java, it's simple. If it's PHP, it's of course possible, but not that easy...

Etienne

Nb: Thread locked. The relevant forum is:
http://sourceforge.net/forum/forum.php?forum_id=199107 (http://sourceforge.net/forum/forum.php?forum_id=199107)