This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one 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.
posted 12 years ago
hope i inderstodd your problem...if you can get a byte array simply construct a string out of this byte array..see the various String constructors..