Thread: How to save the password inside the application and hash it using c#?

  1. #1
    Registered User
    Join Date
    Dec 2015
    Posts
    1

    How to save the password inside the application and hash it using c#?

    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.

  2. #2
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    The hardcoded password will be read from a textfile.
    That sentence doesn't make sense. By definition, a hardcoded password cannot be read from an external source. I'm very confused by your requirements.
    If you understand what you're doing, you're not learning anything.

  3. #3
    Registered User
    Join Date
    Jun 2011
    Posts
    4,508
    That's okay, they're receiving plenty of help elsewhere.

  4. #4
    Registered User
    Join Date
    Dec 2015
    Posts
    1
    I am having difficulty this issue

  5. #5
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    Quote Originally Posted by stumpone123 View Post
    I am having difficulty this issue
    That sucks.

    If you ask a question, explaining exactly what difficulty you're having, someone might be able to help you.
    If you understand what you're doing, you're not learning anything.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. defn inside hash table
    By thames in forum C Programming
    Replies: 3
    Last Post: 12-08-2012, 09:03 AM
  2. C++ Hash/Salt/Shadow Password system
    By xivshin in forum C++ Programming
    Replies: 1
    Last Post: 08-02-2010, 08:56 AM
  3. Save As Dialog MFC Application howto
    By jkw2068 in forum Windows Programming
    Replies: 2
    Last Post: 08-06-2003, 05:10 PM
  4. Password Application
    By hisham69 in forum C Programming
    Replies: 2
    Last Post: 12-31-2002, 03:14 AM