Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: How to add encryption in Jupload applet ?  (Read 6031 times)

0 Members and 1 Guest are viewing this topic.

spock

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
How to add encryption in Jupload applet ?
« 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 ...  :-[


Logged

spock

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: How to add encryption in Jupload applet ?
« Reply #1 on: October 20, 2009, 01:27:43 am »

No anwser so far  :-\

Just doing a little up !  ;)
Logged

etienne_sf

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 908
    • Wiki
Re: How to add encryption in Jupload applet ?
« Reply #2 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

  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

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: How to add encryption in Jupload applet ?
« Reply #3 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  :-\

Logged

etienne_sf

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 908
    • Wiki
Re: How to add encryption in Jupload applet ?
« Reply #4 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
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.