File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes Client-Server example for using cryptography package? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » Security
Reply Bookmark "Client-Server example for using cryptography package?" Watch "Client-Server example for using cryptography package?" New topic
Author

Client-Server example for using cryptography package?

harke baj
Greenhorn

Joined: Feb 02, 2010
Posts: 28
Hi all,

I know that this is not the right folder for asking cryptographic questions, but I did not find any other folder for asking this topic.

What I want is an example for a client-server to transfer data securely.

I have made a stand alone program. But I could not get how to achieve this in the client - server situation.

Thank you.

harke
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 3433
There are hundreds of ways to do this.

The usual/Practical approach is to write a Servlet to handle the messages in the server side, and use a browser or something like the Apache HTTP client library to act like a sever. With this, you can use standard SSL/TLS to provide secure access.

You could, of course, use RMI and a suitable cryptography library.
harke baj
Greenhorn

Joined: Feb 02, 2010
Posts: 28
sorry to ask this but could you point me to an example, or keywords to type in google to find the examples. I am not able to google a particular example.

Thank you.
Joachim Rohde
Ranch Hand

Joined: Nov 27, 2006
Posts: 419

Try this as a start: http://java.sun.com/javase/technologies/security/
(Second link in google after searching for "java ssl")
 
 
subject: Client-Server example for using cryptography package?
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com