The most intelligent Java IDE
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Reply Bookmark it! Watch this topic JavaRanch » Forums » Engineering » Security
 
RSS feed
 
New topic
Author

Client-Server example for using cryptography package?

harke baj
Greenhorn

Joined: Feb 02, 2010
Messages: 15

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
Ranch Hand

Joined: Aug 11, 2007
Messages: 2234

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
Messages: 15

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
Messages: 195

Try this as a start: http://java.sun.com/javase/technologies/security/
(Second link in google after searching for "java ssl")

Create your own wishlist at www.tilto.co.uk
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Engineering » Security
 
RSS feed
 
New topic
The most intelligent Java IDE

.