amitaymolko / react-native-rsa-native

A native implementation of RSA key generation and encryption/decryption.
MIT License
232 stars 112 forks source link

On iOS RSAKeychain.getPublicKey returns an object instead of a string #143

Open leabaertschi opened 1 year ago

leabaertschi commented 1 year ago

When calling RSAKeychain.getPublicKey() on iOS, it returns an object {public: string} instead of a string. The app was built with XCode 14 and react-native 0.69.6.

hanyufoodles commented 3 months ago

I confirm. The return value from getPublicKey or getPublicKeyRSA on iOS is of the type PublicKey, not a string. On Android it's a string.