I am currently about to finish my project but is quite stuck about these two issue that I have. Allow me to give you a brief description on how my project will be like so that you will have a clearer picture.

In my project, I will need to first create myproject1.exe using visual studio with hardcoded password to change local administrator account. The hardcoded password will be read from a textfile. Once I have create myproject1.exe, I will then need to use myproject1.exe to generate myproject2.exe. My project2.exe will contains the password that I had obtain from the textfile.

The objectives of this project is such that the user will be able to change the local administrator password on all the laptop by just copy the second exe to all those laptop.

This is how I use myproject1.exe to generate myproject2.exe:

System.IO.File.Copy(Application.StartupPath + "\\myproject1.EXE", Application.StartupPath + "\\myproject2.exe");


I know that something needs to be done before I generate myproject2.exe such as storing of password inside the application and hash the password that I had gotten from the textfile but I have no idea how to do this. Can anyone help me with these two issue that I have:

How to save the password inside the application and hash the password once I had gotten the password from the textfile?

Let me know if you need another other coding from me to assist me. Any help would be greatly appreciated.