I'm curious to see other answers, but I personally found this post:
https://stackoverflow.com/questions/12657792/how-to-securely-save-username-password-local
and ended up using this method from Jon Galloway,
https://weblogs.asp.net/jongalloway/encrypting-passwords-in-a-net-app-config-file
it uses DPAPI, already mentioned by Trevor.
the key is attached to the user/machine so it will not work in other users/machines (you can request it initially, and then schedule)
the credential manager option looks great, so I don't know. you can have a look at both and see which one is better for your scenario.