Re: Example needed: Encrypt/Decrypt string with Private/Public key

From: Michel Gallant (neutron_at_istar.ca)
Date: 09/09/03

  • Next message: x31: "Cryptography -- Construct RSAParameter from a Constant String"
    Date: Mon, 8 Sep 2003 23:08:42 -0400
    
    

    See digital signature sample, and related signature verification sample at:

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpcongeneratingsignatures.asp

    You can send someone your public key credentials by:
     oRSACryptoServiceProvider.ExportParameters(false)
    and then serialize to file the returned RSAParameters instance.
    End users use deserialize and use:
     oRSACryptoServiceProvider.ImportParameters(oRSAParameters)

     - Michel Gallant
       MVP Security

    "Sergio C." <sergiocmBORRAESTOyEsto@telefonica.net> wrote in message
    news:OplPgxndDHA.2332@TK2MSFTNGP11.phx.gbl...
    >
    > > - encrypt a hash with your private key (a digital signature) so others
    > can verify
    > > content integrity using your public key
    >
    > I need to do that, do you have an example??
    >
    >
    > Sergio C.
    >
    >


  • Next message: x31: "Cryptography -- Construct RSAParameter from a Constant String"