When you tell Visual Studio to save your password for a publish profile, it creates a .pubxml.user
file next to your publish file looking something like the following:
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<TimeStampOfAssociatedLegacyPublishXmlFile />
<EncryptedPassword>AQAAANC[...]</EncryptedPassword>
</PropertyGroup>
</Project>
How does Visual Studio actually encrypt the password in the EncryptedPassword
element? I'd like to decrypt it because I've forgotten my password... now it's just stored encrypted in this file!