My question is: Why are you trying to use RSA at all?
It's 2019! I can't think of anyone who seriously recommends RSA anymore. Switch to elliptic curve cryptography, where footbullets like a 512-bit RSA key offer aren't even on the table.
It's 2019! I can't think of anyone who seriously recommends RSA anymore. Switch to elliptic curve cryptography, where footbullets like a 512-bit RSA key offer aren't even on the table.
Probably because you have to use something, and it's not obvious which things have footbullets and which don't.
https://paragonie.com/blog/2017/06/libsodium-quick-reference...
https://libsodium.gitbook.io/doc/bindings_for_other_language...
It's a lot easier in 2019 than it was years ago.