This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Hi All, I want to generate PublicKey and PrivateKey pairs in my java program and distribute the public key. How do I convert the PublicKey into a String ? I can convert it into a byte array, but not able to extract a string value. Further, how do I obtain the PrivateKey object back from the Supplied string. Some code snippets will be really helpful. Thank you. Cheers, Amit.