How can I convert RSAPublicKey into something readable (public key sharing reasons) and then convert it back to RSAPublicKey?
How can I convert RSAPublicKey into something readable (public key sharing reasons) and then
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
getEncoded()method gets you a byte array, which you can then convert to a string in hexadecimal representation (or, if you want to get cleverer about it, have a set 256 words you can use to represent each byte!) Similar idea on the way back. Once you convert it back to a byte array there should be a constructor you can pass it to.