[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 945
  • Last Modified:

Encrypted File upload using commons FileUpload

I am using Apache HTTPClient & commons FileUpload APIs for uploading files. I want to encrypt the file.

Thanks.
0
sangameshrh
Asked:
sangameshrh
  • 5
  • 5
2 Solutions
 
CEHJCommented:
Why don't you use https?
0
 
sangameshrhAuthor Commented:
Any other ways than HTTPS??
0
 
CEHJCommented:
Well that's by far the simplest. What are your security concerns?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
sangameshrhAuthor Commented:
Nothing in particular. I dont want to go for HTTPS.
0
 
CEHJCommented:
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
 
sangameshrhAuthor Commented:
I am uploading only one file at a time. How can a file be encrypted & decrypted? Any algorithms?
0
 
CEHJCommented:
You need to operate on the stream. See http://www.exampledepot.com/egs/javax.crypto/DesFile.html
0
 
ysnkyCommented:
0
 
sangameshrhAuthor Commented:
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
 
sangameshrhAuthor Commented:
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
 
CEHJCommented:
>>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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now