I'm trying to generate an RSA public key in the form of PKCS#1 in Android.
There is almost an exact duplicate of this question here: Generating RSA keys in PKCS#1 format in Java
The author never responded with an answer though. I went through the answers, but I haven't been able to find something that works. I've come to the conclusion (unless someone else has a different answer) that it must be done using Bouncy Castle. The only problem I'm having with bouncy castle is actually using it in Android. I "seem" to have imported the jar correctly (I say "seem" because I've never done it before, but it was a fairly painless process and I get no errors in Eclipse) but, then I get an error in log cat.
03-25 22:25:58.780: E/AndroidRuntime(9171): java.lang.NoClassDefFoundError: org.bouncycastle.jce.provider.BouncyCastleProvider