IntelliJ Java IDE
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: 3688

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?
 
Threads others viewed
how to creat Browse button
Write a file at client's machine.
can we create folder in client machine using EJB RMI?
Java Mail With Outlook
other languages calling java commands
Two Laptop Bag

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture