title: Managing deployment of encrypted connection string (IIS)
body: <p>I have ran in my computer  </p>
  
  <pre><code>aspnet_regiis -pe "connectionStrings" -app "/MyApp" -site "MySite"
  </code></pre>
  
  <p>And it created an encripted &lt; connectionStrings > xml element in web config</p>
  
  <p>Now every time that I delpoy my app to a new environment<br>
  web.config is being "web transformed" into a new web.config and then deployed.<br>
  I understand that the encryption is unique per machine. 
  I tried to copy the encrypted value and it didnt work. </p>
  
  <ol>
  <li>Do I need to run "aspnet_regiis -pe... " command evey time I deploy and on every machine?<br>
  Is there a better practice?  </li>
  <li>what/where is the unique key in my computer that my machine uses in the encription?<br>
  Do I need to guard it for potential attacks?<br>
  thanks. </li>
  </ol>