It's not a secret anymore!
The moose likes Sockets and Internet Protocols and the fly likes Passing Public Key Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Passing Public Key" Watch "Passing Public Key" New topic

Passing Public Key

John Hass

Joined: Oct 31, 2004
Posts: 2
I am using Bouncy Castle to create a RSA Public/Private Keypair. How can I pass my public key using a socket to another user so they can encrypt the message they send to me.

Henry Wong

Joined: Sep 28, 2004
Posts: 20057

Feel free to do it any way you want... Public keys can be passed in the clear. It is not possible to decrypt a message without the private key.


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Have you checked out Aspose?
subject: Passing Public Key
It's not a secret anymore!