aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Passing Public Key" Watch "Passing Public Key" New topic
Author

Passing Public Key

John Hass
Greenhorn

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.

--John
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18108
    
  39

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.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing Public Key
 
Similar Threads
where to place the Public key
XML security doubt: Public key cryptography
Do you encrypt password yourselves?
Asymmetric Encryption and Decryption
problem in XOR of private key using public key....