title: Android PublicKey to string
body: <p>I am trying to convert PublicKey to String but I don't know how to do it properly. Following code doesn't give me correct key, so how convert it?  </p>
  
  <pre><code>byte[] publicKeyBytes = userKeys.getPublic().getEncoded();
  String pKstring = new String(publicKeyBytes);
  </code></pre>