|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Re: Encrypting using RSA private KeyHi,
I want to do RSA encryption with the private key and i want to decrypt using public key. I am been able to encrypt it using private key but while decrypting, I am getting the "BAD KEY" error. Can any one help me out as it is very urgent to me. Could you please provide me the code in .NET so that i can add it in my code and get it done soon. Thank You in Advance. Regards, Vivek *** Sent via Developersdex http://www.developersdex.com *** This is not a supported use case for RSA key pairs, hence the error. You
encrypt with public keys and decrypt with private keys. It sounds like you want to implement digital signature instead. In this use case, you sign with private key and verify with public key. -- Show quoteHide quoteJoe Kaplan-MS MVP Directory Services Programming Co-author of "The .NET Developer's Guide to Directory Services Programming" http://www.directoryprogramming.net "VIVEK KUMAR" <vivek.ku***@infogain.com> wrote in message news:e5ttTBuoJHA.1248@TK2MSFTNGP03.phx.gbl... > > > Hi, > > I want to do RSA encryption with the private key and i want to decrypt > using public key. I am been able to encrypt it using private key but > while decrypting, I am getting the "BAD KEY" error. > Can any one help me out as it is very urgent to me. > Could you please provide me the code in .NET so that i can add it in my > code and get it done soon. > > Thank You in Advance. > > Regards, > Vivek > > *** Sent via Developersdex http://www.developersdex.com ***
Problem with pkcs #7
TripleDES output size Sending signed and encrypted email. VS 2005 publish and app.config encryption problem Genereate Key with SecureString and Rfc2898DeriveBytes StrongNameIdentityPermission BinaryFormatter.Deserialize and Smart Clients strong name validation failed problem Trusting a location for Framework 2.x Role-based secu.: IIS hosted remoting server doesn't hold my princ |
|||||||||||||||||||||||