How to encrypt/encode part of a file RRS feed

  • Question

  • I have an application with a settings.xml file that contains all the settings for the application as it is setup on that machine. This file contains passwords and we would like to encrypt or encode just the password and leave the rest alone (readable).
    I've been looking in the System.Security.Cryptography namespace but can't seem to find an example that applies. The main problem being that traditional encryption gives me bytes that don't apply to the ASCII namespace and thus don't translate to text that I can unencrypt and get the same thing out I put in.

    Any suggestions?
    Thursday, October 29, 2009 6:17 PM


All replies