title: generate RSA public/private key based on a passphrase using bouncy Castel library in c#
body: <p>I'd like to generate an RSA key pair with a private key encrypted with passphrase using the Bouncy Castel Library in C# and save them to separate files so that I can use them to encrypt or decrypt things whenever I need to...</p>
  <p>I'm able to generate an RSA keypair and store them in separate PEM files. I believe it is in PKCS1 format, but I can't seem to figure out how to generate Keypair based on the password.</p>
  <p>I looked on the official site, <a href="https://www.bouncycastle.org/csharp" rel="nofollow noreferrer">https://www.bouncycastle.org/csharp</a>, but couldn't find any examples.
  I also searched all the way through stack overflow with no success.</p>