I
I
ionicman2013-06-26 12:49:06
Java
ionicman, 2013-06-26 12:49:06

Client side file encryption in Java?

Good afternoon!
There is a question for Java connoisseurs - I want to make AES-256 encryption / decryption of files on the client.
Files are received/sent via HTTP POST.
Since the only option for this is JAVA (because the files are large) and I'm not strong in it, I would like to know how this is usually done through an applet.
At this stage, I imagine it like this:
download:
1) a file is selected in the form for transfer
2) a password is entered
3) a java applet is called with the path to the file and a password, the applet encrypts it and sends a POST with a download request
:
1) a file is selected
2) the applet is called with the selected file
3) the applet downloads the file and decrypts it, then gives it to the user
The problem is that files can be large enough to be stored directly in memory.
Is there any streaming solution possible? In order not to keep the entire file in memory - because I want it to work on smarts too.
Maybe there is something where this was used, maybe there is just a piece of the listing - it will be enough for me :-) thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AgentSIB, 2013-06-26
@AgentSIB

CipherInputStream and CipherOutputStream won't work? It seems that if you feed them InputStream / OutputStream everything should take place on the fly (I can, of course, be mistaken).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question