Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Encrypted File upload using commons FileUpload

Posted on 2007-11-18
13
935 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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
 

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This video teaches viewers about errors in exception handling.

839 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