Storing encrypted password in xml file??

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Storing encrypted password in xml file??

    Hi,

    I have an XML file that stores a Profile of a user, including the username,
    password, server name, etc.

    I want to be able to leave the XML file as plain text, but have the password
    attribute encrypted.

    I have used the RC2CryptoServiceProvider class, but when i convert the
    encrypted byte array to a string to store in my xml file, it(the encrypted
    string) contains some illegal characters which are not allowed in an xml
    file.


    Anyone have any ideas of how to encrypt the password and still be able to
    store it in the xml file.

    By the way, I also need to decrypt it, so none of the hash code replies
    please..

    Thanks in advance:-)

    Smita.


    smita Guest

  2. Similar Questions and Discussions

    1. Selling encrypted PDFs online with buyer's email as password?
      Hi all I am planning on selling a PDF file online. The content is the same for every buyer, however I'd like to encrypt the PDF with the buyer's...
    2. Connect to database using encrypted password
      I'm needing to connect to a database manually (not using cfquery). However I'm not wanting to hardcode the password into the file. I have a...
    3. Encrypted Password
      I am trying to use an existing customer table in our SQL database for another Member-Only section of our web site, so they will share the same...
    4. Forgot Password encrypted email system
      I really wish there were some examples explaining how to create a forgot password email link system when you encrypt a password in a database and...
    5. Storing encrypted data
      Hello everyone, I'm in need of storing a few pieces of text in a text file on my server and want to keep it encrypted, but not permission...
  3. #2

    Default RE: Storing encrypted password in xml file??

    Have you considered wrapping the password data using "CDATA" blocks?

    --

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Use of included script samples are subject to the terms specified at
    [url]http://www.microsoft.com/info/cpyright.htm[/url]

    Note: For the benefit of the community-at-large, all responses to this
    message are best directed to the newsgroup/thread from which they
    originated.

    Mark Berryman [MSFT] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139