Encrypt identity password

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

  1. #1

    Default Encrypt identity password

    Hi,

    I want to encrypt userid and password on the web config
    file. I ran the aspnet_setreg.exe and encrypted it on the
    registry and in the web config file i wrote

    <identity impersonate = "true"
    userName="registery:HKLM:\SOFTWARE\MYAPP\identity\ ASPNET_SE
    TREG,userName"
    password=="registery:HKLM:\SOFTWARE\MYAPP\identity \ASPNET_S
    ETREG,password" />

    But it throwed me an error
    "Could not create Windows user token from the credentials
    specified in the config file. Error from the operating
    system 'Logon failure: unknown user name or bad
    password. '"

    If i hardcore my userid and password on the web config
    file it works fine.

    Any help would be good.
    I am doing all these as i want to move my files from the
    webserver to a shared folder on the database server and i
    need to provide write access to the shared folder.
    Any help or advice will be good.
    Thanks
    Anand
    Anand Guest

  2. Similar Questions and Discussions

    1. How to Encrypt password
      In the web.config how do you generate the encrypted string that can be used to store password of the identity element?
    2. Best Way To Password Encrypt A Flash Site
      What is the best way to password encrypt the entry to a flash site? e.g. www.famousforgettingresults.com Direction to a site with info would be...
    3. encrypt
      I can encrypt the contents of a memory stream with no problems, however when decrypting( I'm using the same key an IV ) I get an exception stating...
    4. Encrypt in Perl, De-encrypt in Javascript
      I got a javascript off the net which encrypt and de-encrypt HTML code so that nobody can read the public html file. here is the code of...
    5. resetting password for windows XP identity
      My second computer has only one identity on it. I changed the password to make sure my son was not going on the internet when I did not know it. ...
  3. #2

    Default Re: Encrypt identity password

    Anand wrote:
    > Hi,
    >
    > I want to encrypt userid and password on the web config
    > file. I ran the aspnet_setreg.exe and encrypted it on the
    > registry and in the web config file i wrote
    >
    > <identity impersonate = "true"
    > userName="registery:HKLM:\SOFTWARE\MYAPP\identity\ ASPNET_SETREG,userName"
    > password=="registery:HKLM:\SOFTWARE\MYAPP\identity \ASPNET_SETREG,password"
    />

    If you wrote it like this, you made a few typos.
    "registery" should be "registry"
    "password==" should be "password="

    --

    Jos Branders


    Jos 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