I have ran in my computer
aspnet_regiis -pe "connectionStrings" -app "/MyApp" -site "MySite"
And it created an encripted < connectionStrings > xml element in web config
Now every time that I delpoy my app to a new environment
web.config is being "web transformed" into a new web.config and then deployed.
I understand that the encryption is unique per machine.
I tried to copy the encrypted value and it didnt work.
- Do I need to run "aspnet_regiis -pe... " command evey time I deploy and on every machine?
Is there a better practice? - what/where is the unique key in my computer that my machine uses in the encription?
Do I need to guard it for potential attacks?
thanks.