locked
encrypt connection string asp net 4.0 RRS feed

  • Question

  • User2067508032 posted

    Hi Dear all

    I want to do encrypt connection in web config file. I found that

    1) command prompt type the following command aspnet_regiis.exe -pef "connectionStrings" "C:\VisualStudio2010\Authorization"

    2)Encrypt connectionStrings in web.config of IIS based site aspnet_regiis.exe -pe "connectionStrings" -app "/SampleWebSite"

    I'm not clear when I doing like that "Fail!".

    my question is

    1) C:\VisualStudio2010\Authorization is should be change or not becoz I install at C:\Program\VisualStudio2010

    2) IIS based when done file not found.

    Who can u explain me step by step and clear. Thank you
     



    Tuesday, March 5, 2013 8:59 PM

Answers

  • User1196771204 posted

    hi there,

    I believe it is a bit troublesome if you try to encrypt the web.config conn string. Why don't you just store the connection string on your .cs or .vb file? When you compile your project, these code-behind files will be "converted" to DLL files and no one can see it.

    Additionally, if you are using encryption methodology, you have to install the decryption key as well.

    Hope this helps! :) 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, March 5, 2013 10:12 PM