File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generating Public and Private keys.

 
Am SH
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Vijay Pandey
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic