Write data in XML file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fabrizio

    #1

    Write data in XML file

    HI,
    I would like to save some user configuration info on XML
    file, but I also need to "hide" the password so that
    nobody can read that info. Do i need an ecryption routine
    or can I convert the password in some other format?
    Thanks,
    Fabrizio
  • Manish Agarwal

    #2
    Re: Write data in XML file

    use System.Security .Cryptography

    -------------------------
    "Manish Agarwal"- <manishkrishan@ hotmail.com>

    If replying to the group, please do not mail me.


    "Fabrizio" <fmaltese@gesti onescorte.it> wrote in message news:0a8801c352 98$83c29560$a10 1280a@phx.gbl.. .[color=blue]
    > HI,
    > I would like to save some user configuration info on XML
    > file, but I also need to "hide" the password so that
    > nobody can read that info. Do i need an ecryption routine
    > or can I convert the password in some other format?
    > Thanks,
    > Fabrizio[/color]

    Comment

    • Nicholas Paldino [.NET/C# MVP]

      #3
      Re: Write data in XML file

      Fabrizio,

      You can use any of the classes that derive from the
      System.Security .Cryptography.S ymmetricAlgorit hm class to encrypt your
      string. However, if you store the private key and IV value in the assembly,
      you need to be aware that almost anyone could see it using a disassembler.
      In this case, you might want an unmanaged assembly of some sort that would
      return the key and iv value to you. While this isn't foolproof, it will
      deter the majority of people who's threshold is looking in the disassembler.

      Hope this helps.


      --
      - Nicholas Paldino [.NET/C# MVP]
      - nicholas.paldin o@exisconsultin g.com

      "Fabrizio" <fmaltese@gesti onescorte.it> wrote in message
      news:0a8801c352 98$83c29560$a10 1280a@phx.gbl.. .[color=blue]
      > HI,
      > I would like to save some user configuration info on XML
      > file, but I also need to "hide" the password so that
      > nobody can read that info. Do i need an ecryption routine
      > or can I convert the password in some other format?
      > Thanks,
      > Fabrizio[/color]


      Comment

      • Dmitri Shvetsov

        #4
        Re: Write data in XML file

        http://rss.com.com/2100-1009_3-5053063.html

        Take a look. That's about hashing, Windows crypto etc.

        Dmitri.

        "Nicholas Paldino [.NET/C# MVP]" <nicholas.paldi no@exisconsulti ng.com> wrote
        in message news:%23xTuupqU DHA.1692@TK2MSF TNGP11.phx.gbl. ..[color=blue]
        > Fabrizio,
        >
        > You can use any of the classes that derive from the
        > System.Security .Cryptography.S ymmetricAlgorit hm class to encrypt your
        > string. However, if you store the private key and IV value in the[/color]
        assembly,[color=blue]
        > you need to be aware that almost anyone could see it using a disassembler.
        > In this case, you might want an unmanaged assembly of some sort that would
        > return the key and iv value to you. While this isn't foolproof, it will
        > deter the majority of people who's threshold is looking in the[/color]
        disassembler.[color=blue]
        >
        > Hope this helps.
        >
        >
        > --
        > - Nicholas Paldino [.NET/C# MVP]
        > - nicholas.paldin o@exisconsultin g.com
        >
        > "Fabrizio" <fmaltese@gesti onescorte.it> wrote in message
        > news:0a8801c352 98$83c29560$a10 1280a@phx.gbl.. .[color=green]
        > > HI,
        > > I would like to save some user configuration info on XML
        > > file, but I also need to "hide" the password so that
        > > nobody can read that info. Do i need an ecryption routine
        > > or can I convert the password in some other format?
        > > Thanks,
        > > Fabrizio[/color]
        >
        >[/color]


        Comment

        Working...