Solved

Encrypted File upload using commons FileUpload

Posted on 2007-11-18
13
926 Views
Last Modified: 2008-09-01
I am using Apache HTTPClient & commons FileUpload APIs for uploading files. I want to encrypt the file.

Thanks.
0
Comment
Question by:sangameshrh
  • 5
  • 5
13 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 20310959
Why don't you use https?
0
 

Author Comment

by:sangameshrh
ID: 20311021
Any other ways than HTTPS??
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 20311203
Well that's by far the simplest. What are your security concerns?
0
 

Author Comment

by:sangameshrh
ID: 20311249
Nothing in particular. I dont want to go for HTTPS.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 20311402
Then for each Part you add to the multipart upload, you will need to encrypt it and do the reverse at the other end
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:sangameshrh
ID: 20311417
I am uploading only one file at a time. How can a file be encrypted & decrypted? Any algorithms?
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 250 total points
ID: 20311518
You need to operate on the stream. See http://www.exampledepot.com/egs/javax.crypto/DesFile.html
0
 
LVL 9

Assisted Solution

by:ysnky
ysnky earned 250 total points
ID: 20311569
0
 

Author Comment

by:sangameshrh
ID: 20333895
In the example given by CEHJ
I want give my own key, think "sandeepxyz123"
I dont want to use the key generated by
KeyGenerator.getInstance("DES").generateKey();

0
 

Author Comment

by:sangameshrh
ID: 20333946
Actually The encryption part is at the client end & decryption part is at the server end.
The keys used in both the case should be the same.
How can I know it?
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 20334123
>>How can I know it?

You can't. You'd have to tell them the key. That's just one of the many reasons you should use SSL - it handles the keys (and everything else) for you
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to implement Singleton Design Pattern in Java.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now