How to Hash Passwords for XML Files

To save a password hash to an XML file, you can call this function:

FormsAuthentication.HashPasswordForStoringInConfigFile(txtPassword.Text & "|" & txtUsername.Text, "SHA1")

You can see my attempt at a password salt by simply apppending the Username.