I read a tutorial on ASP.NET and a third-party API, and he mentioned that the KEY and SECRET KEY APIs should be stored in the web.config file for security on production servers, and not in classes that use them, However, I'm not quite sure which is safer for the web.config file than for the class? I understand the convenience of storing it in a configuration file, but I don’t see the security benefits?
source
share