Support Forum Project Downloads FAQ Documentation About Demo Tutorials Blog Plugins
November 21, 2009, 07:04:27 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Maintenance release cpg1.4.25 - upgrade recommended
The Coppermine development team is releasing an update for Coppermine in order to fix an issue with http uploads that could occur in particular versions of PHP.The fix is not security-critical, so if your gallery is running fine with cpg1.4.23 or cpg1.4.24 you don't need to upgrade. If you are running an older version than cpg1.4.23, you must update to this latest version as soon as possible because of the security impact (the past few maintenance releases before cpg1.4.24 all were security-related).
[more]
   Home   Help Search Board rules Login Register  
Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: How to add encryption in Jupload applet ?  (Read 324 times)
0 Members and 1 Guest are viewing this topic.
spock Topic starter
Coppermine newbie

France France

Posts: 3


« on: October 17, 2009, 04:22:32 pm »

Hello Everyone ! Smiley

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  Undecided
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 ...  Embarrassed


Logged
spock Topic starter
Coppermine newbie

France France

Posts: 3


« Reply #1 on: October 20, 2009, 12:27:43 am »

No anwser so far  Undecided

Just doing a little up !  Wink
Logged
etienne_sf
Moderator
****
Gender: Male
France France

Posts: 798


WWW
« Reply #2 on: October 20, 2009, 10: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

  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
Logged
spock Topic starter
Coppermine newbie

France France

Posts: 3


« Reply #3 on: October 20, 2009, 11:02:56 am »

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  Undecided

Logged
etienne_sf
Moderator
****
Gender: Male
France France

Posts: 798


WWW
« Reply #4 on: October 20, 2009, 12: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
Logged
Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  

Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
Page created in 0.061 seconds with 18 queries.