You are developing an ASP.NET MVC application that will be deployed on a web farm. Passwords must be
stored in the web.config file and must not be readable or in a format that is easily decodable. You need to
encrypt the passwords that are stored in the web.config file. Which command-line tool should you use?
A.
Aspnet_regiis.exe
B.
Aspnet_regbrowsers.exe
C.
Aspnet_setreg.exe
D.
Aspnet_compiler.exe
Answer should be C.
OK, I was incorrect. aspnet_setreg – Use the Aspnet_setreg.exe utility to encrypt and to store these attribute values in the registry under a secure key.
Answer is explained at http://msdn.microsoft.com/en-us/library/zhhddkxy%28v=vs.100%29.aspx
A is correct
http://stackoverflow.com/questions/6291322/how-to-encrypt-username-and-password-in-web-config-in-c-sharp-2-0
http://www.codeproject.com/Tips/795135/Encrypt-ConnectionString-in-Web-Config
https://msdn.microsoft.com/en-us/library/dx0f3cf2(v=vs.85).aspx
https://msdn.microsoft.com/en-us/library/zhhddkxy.aspx
Note: Passwords must be “stored in the web.config file” and >>must not be readable<<.
Stored in file and not readable. If Aspnet_setreg is something to do with registry.
Hence A is the correct ans.