Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Protect password file

Protect password file

Scheduled Pinned Locked Moved C#
xmlhelptutorialannouncement
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Karmendra Suthar
    wrote on last edited by
    #1

    Hi, I have created a login in my winform application, i encrypt the password and store in a xml file. I am worried about if the user deletes the xml file, he can crack into the system. can you please suggest me how to make sure user cannot delete the xml file. I tried embedding the xml file but, if i do that authorized users will not be able to change password and update the xml. Please help Thanks for your time and knowledge, Karmendra

    D 1 Reply Last reply
    0
    • K Karmendra Suthar

      Hi, I have created a login in my winform application, i encrypt the password and store in a xml file. I am worried about if the user deletes the xml file, he can crack into the system. can you please suggest me how to make sure user cannot delete the xml file. I tried embedding the xml file but, if i do that authorized users will not be able to change password and update the xml. Please help Thanks for your time and knowledge, Karmendra

      D Offline
      D Offline
      Dragonfly_Lee
      wrote on last edited by
      #2

      KSuthar wrote:

      if the user deletes the xml file, he can crack into the system.

      Why? If the application can not validate the password by using your xml file, in other words, the validation fails. In this case, the app should not let the user login. Hence, it should not be the problem at all.

      :) I Love KongFu~

      K 1 Reply Last reply
      0
      • D Dragonfly_Lee

        KSuthar wrote:

        if the user deletes the xml file, he can crack into the system.

        Why? If the application can not validate the password by using your xml file, in other words, the validation fails. In this case, the app should not let the user login. Hence, it should not be the problem at all.

        :) I Love KongFu~

        K Offline
        K Offline
        Karmendra Suthar
        wrote on last edited by
        #3

        And if the user deletes the xml file by going to the physical location of the file. what shall I do in such case. as of now my program recreates the xml with default password.

        D D 2 Replies Last reply
        0
        • K Karmendra Suthar

          And if the user deletes the xml file by going to the physical location of the file. what shall I do in such case. as of now my program recreates the xml with default password.

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          KSuthar wrote:

          And if the user deletes the xml file by going to the physical location of the file. what shall I do in such case. as of now my program recreates the xml with default password.

          That's entirely up to you and your app specifications how it should respond. Recreating with a default password seems reasonable, IF it doesn't compromise the secruity of your data. Oh! You can't stop someone from deleting the file...

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          1 Reply Last reply
          0
          • K Karmendra Suthar

            And if the user deletes the xml file by going to the physical location of the file. what shall I do in such case. as of now my program recreates the xml with default password.

            D Offline
            D Offline
            Dragonfly_Lee
            wrote on last edited by
            #5

            KSuthar wrote:

            what shall I do in such case.

            If the user has the administration authority, I do not think we can stop him/her to delete the file. Maybe you can design you app logic again for validating password.

            KSuthar wrote:

            as of now my program recreates the xml with default password.

            Is it safe enough for you? If yes, go ahead.:)

            :) I Love KongFu~

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups