Re: RSA encrypting with the Private Key?

From: Ivan Medvedev [MS] (ivanmed_at_online.microsoft.com)
Date: 07/08/03


Date: Mon, 7 Jul 2003 15:25:16 -0700


Roberto -
there are two possible answers here, depending on whether your question is
theoretical or practical.
Practically: no, it can not be done, that is, with the existing classes/APIs
you can not just take a private key and encrypt data using it; RSA algorithm
was not designed for this use.
Theoretically: yes, it can be done, and in fact it is sort of being done
under the hood when you digitally sign something.
--Ivan
This message is provided "AS IS" with no warranties, and confers no rights.

"Roberto Martinez-Brunet" <rmbrunet@hotmail.com> wrote in message
news:eJGbpSMRDHA.712@TK2MSFTNGP12.phx.gbl...
> All,
>
> Using RSA, can the encryption be done with the private key and the
> decryption with the public? Would appreciate any help on this.
>
> Thanks!
>
> Roberto Martinez-Brunet
>



Relevant Pages

  • Re: What is stored in a RSA key?
    ... <As far as I know the RSA algorithm is based on the following formula: ... <same formular but with another exponent. ... <I have an idea about modulus, publicExponent, privateExponent, prime1, ... When you know the private key, ...
    (sci.crypt)
  • RSA - Encrypt with Private
    ... How can I force RSACryptoServiceProvider to encrypt data ... with the PRIVATE key in order to let the "receiver" to be ...
    (microsoft.public.dotnet.security)
  • Re: How? Encrypt using private key
    ... The sender has a private key, the recipient has a public key. ... >>To encrypt data using a private key you can you RSACryptoServiceProvider ... >>Sergey Bogdanov ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Signing hash with private key
    ... CryptEncrypt will encrypt data with the public key only. ... CryptSignHash automatically uses the private key to sign ... I then created a hash object, added data to be> hashed to the hash object, and called CryptEncrypt with the private key ...
    (microsoft.public.platformsdk.security)
  • Re: openssl_pkey_new()
    ... > I'm hoping to use the OpenSSL module to encrypt data in a database (no ... Just wondering - how can the private key by "nice n secure" if a script ...
    (comp.lang.php)