title: Store password in irreversible encrypted format in web.config file
body: <p>I have an MVC application that needs to authenticate an active directory account. I want to store the account name and password in the web.config file.</p>
  
  <p>What i'm looking for are suggestions for the best bullet proof way of storing this accounts password in an irreversible encrypted format in the web.config file. </p>
  
  <p>However, an alternative way of approaching this requirement is welcome too as i'm doing this kind of thing for the first time, so i'm not sure how others have gone about securely storing a password in web.config file and then reading it from the application.</p>