RE: Need the equivalent of CryptGenKey for PUBLIC/PRIVATE pairs

From: [MSFT] (lukezhan_at_online.microsoft.com)
Date: 03/24/05

  • Next message: Dominick Baier [DevelopMentor]: "Re: Cookies question"
    Date: Thu, 24 Mar 2005 02:27:41 GMT
    
    

    Hello Roy,

    A public/private key pair is generated whenever a new instance of an
    asymmetric algorithm class is created. Once a new instance of the class is
    created, the key information can be extracted using one of two methods:

    1. The ToXMLString method, which returns an XML representation of the key
    information.
    2. The ExportParameters method, which returns an RSAParameters enumeration
    to hold the key information.

    For more information on this, you may refer to this article:

    Generating Keys for Encryption and Decryption
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
    l/cpcongeneratingkeysforencryptiondecryption.asp

    Hope this help,

    Luke


  • Next message: Dominick Baier [DevelopMentor]: "Re: Cookies question"