Re: Asymetric Encryption - What am I doing wrong?

From: William Stacey [MVP] (staceyw@mvps.org)
Date: 04/06/03

  • Next message: Michel Gallant \(MVP\): "Re: Asymetric Encryption - What am I doing wrong?"
    From: "William Stacey [MVP]" <staceyw@mvps.org>
    Date: Sun, 6 Apr 2003 16:09:49 -0400
    
    

    Q - How do you protect a private key in this case, when it is persisted to a
    file?

    --
    William Stacey, MVP
    "Etienne Charland" <mystery@golden.net> wrote in message
    news:uzk0Y58#CHA.2052@TK2MSFTNGP11.phx.gbl...
    > It's easy to put the content of the RSA parameters to a file. You can call
    > myRSA.ToXmlString to get all the data in a string (in XML format). You put
    > that string in a file. To get it back, you call FromXmlString.
    >
    > Etienne
    >
    > "David S." <pleasenospamjustdave2@cox.net> wrote in message
    > news:eGigfa8#CHA.1996@TK2MSFTNGP12.phx.gbl...
    > > Allen,
    > >
    > > You are correct, In a previous attempt I found that I had success
    > encrypting
    > > and decrypting on the same system.
    > >
    > > I tried to follow this example:
    > > http://www.eggheadcafe.com/articles/20020630.asp
    > >
    > > And it looks simple enough, but I wonder if there is something more than
    > > just the keys that must be exported...
    > >
    > > I don't see an easy way of writing the entire set of RSA parameters to a
    > > file, and I am beginning to think that I am missing a seed value or
    > > something that is still in the local keystore.
    > >
    > > David
    > >
    > >
    > > "Allen Jones" <agj@bigfoot.com> wrote in message
    > > news:ORZfhp6#CHA.2704@TK2MSFTNGP11.phx.gbl...
    > > > One suggestion.
    > > >
    > > > Try getting your system working by persisting your asymmetric keys to
    a
    > > CSP
    > > > key container using the CspParameters class.
    > > >
    > > > At least then you can determine if it is how you are storing and
    > > retrieving
    > > > your keys.
    > > >
    > > > Regards
    > > > Allen
    > > >
    > >
    > >
    > >
    >
    >
    

  • Next message: Michel Gallant \(MVP\): "Re: Asymetric Encryption - What am I doing wrong?"

    Relevant Pages

    • Re: Asymetric Encryption - What am I doing wrong?
      ... It's easy to put the content of the RSA parameters to a file. ... myRSA.ToXmlString to get all the data in a string. ... > just the keys that must be exported... ... >> Try getting your system working by persisting your asymmetric keys to a ...
      (microsoft.public.dotnet.security)
    • Re: Hashtable property persistance
      ... A hashtable is a relative complicated runtime strurture. ... Only keys and ... > Does anyone have an example of persisting a Hashtable property of a control? ...
      (microsoft.public.dotnet.framework.windowsforms.designtime)
    • Re: Hashtable property persistance
      ... A hashtable is a relative complicated runtime strurture. ... Only keys and ... > Does anyone have an example of persisting a Hashtable property of a control? ...
      (microsoft.public.dotnet.framework.windowsforms.controls)
    • Encrypt strings at business tier
      ... I need a safe way to store, retrieve and use keys on the ... so that certain strings in Classes ... before persisting to fields in tables in ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: Help With PyParsing of output from win32pdhutil.ShowAllProcesses()
      ... None to a string). ... Still have an urge to parse with pyparsing? ... pyparsing Dict class. ... keys from the parsed data, so it looks like you are already thinking ...
      (comp.lang.python)