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

  1. #1

    Default Machine Key?

    I have a web site that needs to pass some data over the URL. I don't think
    this data is super-sensitive, but certainly some potential client or
    customer might think it is. I am successfully encrypting and decrypting my
    data using the RijndaelManaged provider in System.Security.Cryptography and
    am using a GUID as a key and I think all is fine.

    Question:

    1. Is there some place that I can store this key other than the registry
    that will be easy for the user to change. I am thinking the key needs to be
    the same across multiple servers in the event that this is used on a server
    farm. I could put it in the config file? I have also read about using the
    machine key, but how can I read / retrieve that key?

    2. I have a custom server control that needs to access this key. Reading a
    config file at design time is not very clean. Again, I think about the
    machine config file and the machine key? How about using a resource?

    -Andrew



    Andrew Guest

  2. Similar Questions and Discussions

    1. filecopy from remote machine to local machine
      Hi, I am tryin to copy a tar file from remote machine to local machine using Net:Telnet. I am using the following logic : my(@Out) =...
    2. login that accesses remopte db wont work on that machine but works while on my local machine????!! HELP!
      I knocked up a simple login for a CMS for one of my sites.... now itr will work fine and authemticate with data on the online server by the IP...
    3. Getting files from a Win 2000 machine to a Windows XP machine
      Hi. I've just bought a machine with Windows XP Pro on it and want tto transfer several thousand files from my Win2000 laptop. The laptop has a LAN...
    4. can't get 2000 machine to read xp pro machine
      Hi, Any advice would be great, thanks!!! I have three machines. A. work laptop w2k B. home lap w2k C. Home XP. I am trying to get them...
    5. How to duplicate whole database from one machine to another machine in Windows 2000?
      Would you please what files I have to copy? Thanks. "Ban Spam" <ban-spam@operamail.com> wrote in message...
  3. #2

    Default RE: Machine Key?

    Hello Andrew,

    With MachineKey, ASP.NET can generates a random key and stores it in the
    Local Security Authority (LSA). I think this is a better solution than save
    the key in a config file or registry. You may take a look at :

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/ht
    ml/gngrfmachinekeysection.asp

    http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q312906

    Luke

    [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