Post

Replies

Boosts

Views

Created

Create RSA public key in iOS and send to a Java backend.
Hi, I want to create a RSA public key and send to Java backend for encryption. However, Java returns error invalid key. I have created keys using SecKeyCreateRandomKey and convert publicKey into string using base64encoding. I have had some research : Using third party : https://stackoverflow.com/questions/53906275/rsa-public-key-created-in-ios-swift-and-exported-as-base64-not-recognized-in-jav . Another deep analyze : https://stackoverflow.com/questions/74574369/ios-creating-publickey-in-pkcs-format-instead-of-asn-1-format However, are any more "native way" (which means using only Apple API) supporting this ?
2
0
1.2k
Jun ’23