I want to make an application which simplifies the use of a certain command line program which can ask for a username and password.
I would like to store the password but then later be able to decrypt it and use it to execute the cli app.
I have looked at lots of information but a lot of them say "use a salt / passphrase" but I would like it to act like (as an example) SQL Server Management Studio where you put in your details and save the profile for later use.
An example I found was the following:
Encrypting & Decrypting a String in C#
However this would be weird for a password since you would then need the user to enter two of them. Likewise if you store the salt hard-coded then surely someone can reverse engineer the application.