PEM to PublicKey in Android

后端 未结 2 1508
误落风尘
误落风尘 2021-02-04 15:57

I\'ve seen a number of similar questions, but nothing has quite worked for me. I am simply trying to convert an RSA public key that\'s in PEM format that I\'ve retrieved from a

2条回答
  •  太阳男子
    2021-02-04 16:51

    To answer my own question...The first output is in hex and the second output is in base 64. Just change the return statement to return new String(Base64.encode(encryptedBytes)); and you'll be good!

提交回复
热议问题