Re: RSA encryption and decryption!!!!

From: Alek Davis (alek_DOT_davis_AT_intel_DOT_com)
Date: 03/28/03


From: "Alek Davis" <alek_DOT_davis_AT_intel_DOT_com>
Date: Thu, 27 Mar 2003 16:52:34 -0800


Actually, you can (at least in theory). Public-private keys can be used
interchangeably, i.e. you encrypt with one (normally public, but can be
private) and decrypt with the other (normally, private, but can be public).
In most cases, encrypting with private key makes little sense (since anyone
can be able to decrypt data), but it can be done. Unfortunately, I cannot
tell you if you can - and if so how to - do it in .NET, because I haven't
done it myself. Maybe someone else knows.

-- Alek

"Pieter Philippaerts" <pieter@nospam.mentalis.org> wrote in message
news:u6W4jwJ9CHA.2412@TK2MSFTNGP10.phx.gbl...
> "shahzad" <shah_100_pk@hotmail.com> wrote in message
> news:u#x#bVI9CHA.1808@TK2MSFTNGP12.phx.gbl...
> > i want to know that how can you Encrypt the data with PRIVATE key and
> > Decrypt it with PUBLIC key.
>
> You can't. That's the point of public key cryptography.
>
> Regards,
> Pieter Philippaerts
> http://www.mentalis.org/
>
>



Relevant Pages

  • Re: private to public decrypt now working
    ... If you switch it to use the public key to encrypt and private to decrypt it works. ...
    (microsoft.public.dotnet.security)
  • Re: More on learning "Public Key Authentication"
    ... let me say that in public key ... >> encrypt the result with Alice's public key. ... >> is sent to Alice who decrypts the message with her private key (which ... > encrypted with my private key and they can then decrypt it with the ...
    (comp.sys.mac.system)
  • Re: More on learning "Public Key Authentication" [correction]
    ... As the person who created that private ... How do I "specify" the file? ... > transfer the long 2048 digit public key to the other computer. ... specific keyfile you want to use to encrypt or sign a specific data ...
    (comp.sys.mac.system)
  • Re: how to have a gpg public key?
    ... Having just a public key doesn't do you much good. ... You need both a private key and a public key; ... can encrypt and decrypt your messages and you are just ...
    (Debian-User)
  • [OT] Re: Basic question about Public Private Key Pairs
    ... > and private keys allow me to decrypt, but vice versa is not possible (or ... a public key and a corresponding private key. ... You can encrypt something with each key; ...
    (microsoft.public.dotnet.security)