?
Solved

Encrypted File upload using commons FileUpload

Posted on 2007-11-18
13
Medium Priority
?
939 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
[X]
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
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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 1000 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 1000 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month10 days, 5 hours left to enroll

762 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