Public key encryption with RSACryptoServiceProvider
问题 I have been over an article at CodeProject a for a while that explains how to encrypt and decrypt using the RSA provider: RSA Private Key Encryption While the old version from 2009 was buggy, the new 2012 version (with System.Numerics.BigInteger support) seems more reliable. What this version lacks though is a way to encrypt with a public key and decrypt using the private key. So, I tried it myself but get garbage when I decrypt. I'm not familiar with the RSA provider, so I'm in the dark here