Solved

Encrypted File upload using commons FileUpload

Posted on 2007-11-18
13
924 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
Comment Utility
Why don't you use https?
0
 

Author Comment

by:sangameshrh
Comment Utility
Any other ways than HTTPS??
0
 
LVL 86

Expert Comment

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

Author Comment

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

Expert Comment

by:CEHJ
Comment Utility
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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

by:sangameshrh
Comment Utility
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
Comment Utility
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
Comment Utility
0
 

Author Comment

by:sangameshrh
Comment Utility
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
Comment Utility
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
Comment Utility
>>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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
how to use external config file with Spring MVC 4 59
allStar challenge 1 41
maven java path setting 5 49
Java Timer (static) 9 9
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to implement Singleton Design Pattern in Java.

743 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

8 Experts available now in Live!

Get 1:1 Help Now