This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Security and the fly likes Playing with KeyPair Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Playing with KeyPair" Watch "Playing with KeyPair" New topic

Playing with KeyPair

Mike Litherland
Ranch Hand

Joined: Aug 12, 2004
Posts: 31

I have making RSA KeyPairs for me, but I'm not sure what to do with the encoded data. On my public and private keys I call the getEncoded() method, which returns a binary representation of the key, but how can I turn the binary representation back into a key object? I've been poking around the documentation for about a day without any luck.


Edit: More generally, if someone knows of a tutorial about working with KeyPairs in java other than the sun standard ones, it would be appreciated. Figuring stuff out from google snippets and API docs isn't exactly fun.

[ November 14, 2005: Message edited by: M Litherland ]

Edit 2: I found an example of getting the key pair back from the encoding here:
[ November 14, 2005: Message edited by: M Litherland ]
summer summer

Joined: Nov 16, 2005
Posts: 1
I used to translate .net key file to java key file.
You could learn a lot from this Example

Consider Paul's rocket mass heater.
subject: Playing with KeyPair
Similar Threads
println Vs newLine method
pie chart
How to get open or save dialog in struts.
file read and file write
MD5 encryption using MessageDigest