I have already looked around, and since I am not a specialist in security or encryption, I still do not understand how to implement encryption in my program. I need a server to log into his gitHub account to update code files with special headers. The only hang I have now is to save / get server credentials.
PushOptions push = new PushOptions { Credentials = new UsernamePasswordCredentials { Password = "password", Username = "Username" } };
How do I encrypt these credentials for storage? I know that its a bad idea to store them in code, as in the example, and it would be a bad idea to also store them in any file that is not encrypted.
Also, the only user interaction I want happens when they compile and configure the program on the server. It's like a cronjob on a linux server, in case that matters. Another detail that I want to point out is I use libgit2sharp, but previously used a bash script and ssh for authentication for testing.
source share