none
hash loader RRS feed

  • Question

  •  

    what is hashLoader in   <add key="hashLoader" value="1" /> define in web.config

    i observed HashLoader is used as 

    public enum HashLoader
        {
            SHA1 = 0,
            SHA256,
            SHA384,
            SHA512,
            BLAKE512
        }


    Rakesh Singh


    • Edited by 000sipi Monday, February 24, 2020 7:10 PM
    Monday, February 24, 2020 8:24 AM

All replies

  • This isn't a value inserted by the framework. Most likely it is custom code that your app has added or some third party library you are relying on. We have no way of knowing what this does in your code. I notice this is the second question you've posted about basically the same concept so let's answer the general question so you can get your answer to other, related questions, yourself rather than waiting on someone to answer for you.

    The <appSettings> element in a config file is where apps can put their app-specific settings (basically key-value pairs). This allows apps to keep configurable stuff in an easy to change dictionary. Things like URLs, debug settings, etc are generally stored here. What values are here is completely up to your app. You can put anything that your app needs. Other libraries (and some framework components) also might store data here but they generally prefix them with something. In general you can search for "appsettings <name>" and get to the help information. If nothing comes up then it is either your app that defined it or perhaps a third party library you depend on. There is no way of knowing that short of scanning the code.


    Michael Taylor http://www.michaeltaylorp3.net

    Monday, February 24, 2020 3:10 PM
    Moderator
  • Hi 000sipi,
    According to my understanding,it is a custom application setting.
    And it can be used in your program. you can use the WebConfigurationManager class to read the value.

    string Version = WebConfigurationManager.AppSettings["configVersion"]

    Here is a document about Web.config application keys and you can refer to it.
    [<add> element for <appSettings>]
    Best Regards,
    Daniel Zhang


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, February 25, 2020 7:16 AM
  • Hi 000sipi,
    Has your problem been solved? If it is resolved, we suggest that you mark it as the answer. So it can help other people who have the same problem find a solution quickly.
    Best Regards,
    Daniel Zhang


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, March 4, 2020 2:15 AM