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. Implementing password rules

Implementing password rules

Scheduled Pinned Locked Moved C#
questionworkspace
8 Posts 5 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.
  • A Offline
    A Offline
    Adam Wimsatt
    wrote on last edited by
    #1

    I've been asked to setup a webpage to use to change passwords. That's the easy part... the tricky part is that I have to run the password through a rule check. It can't be a dictionary word, has to be 8 characters, must have a number in it... etc etc. Anyone know of an easy way to do this? I'm just figuring that this has been done so many times before, there has got to be something already implemented that I can use. [Edit] I have googled, but I'm not sure what to google for... password rule doesn't get me anywhere [/Edit]


    // TODO: Write code.

    A V L 3 Replies Last reply
    0
    • A Adam Wimsatt

      I've been asked to setup a webpage to use to change passwords. That's the easy part... the tricky part is that I have to run the password through a rule check. It can't be a dictionary word, has to be 8 characters, must have a number in it... etc etc. Anyone know of an easy way to do this? I'm just figuring that this has been done so many times before, there has got to be something already implemented that I can use. [Edit] I have googled, but I'm not sure what to google for... password rule doesn't get me anywhere [/Edit]


      // TODO: Write code.

      A Offline
      A Offline
      Alomgir Miah
      wrote on last edited by
      #2

      Check this out http://www.thecodeproject.com/csharp/PasswordDialog.asp Live Life King Size Alomgir Miah

      A 1 Reply Last reply
      0
      • A Adam Wimsatt

        I've been asked to setup a webpage to use to change passwords. That's the easy part... the tricky part is that I have to run the password through a rule check. It can't be a dictionary word, has to be 8 characters, must have a number in it... etc etc. Anyone know of an easy way to do this? I'm just figuring that this has been done so many times before, there has got to be something already implemented that I can use. [Edit] I have googled, but I'm not sure what to google for... password rule doesn't get me anywhere [/Edit]


        // TODO: Write code.

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #3

        http://www.codeproject.com/tools/KeePass.asp[^] Vasudevan Deepak Kumar Personal Web: http://vdeepakkumar.netfirms.com/ I Blog At: http://deepak.blogdrive.com/

        A 1 Reply Last reply
        0
        • A Alomgir Miah

          Check this out http://www.thecodeproject.com/csharp/PasswordDialog.asp Live Life King Size Alomgir Miah

          A Offline
          A Offline
          Adam Wimsatt
          wrote on last edited by
          #4

          Thanks for the link. that was interesting, but not quite what I'm looking for. The article states: "This dialog can be easily extended to add rules to force a minimum size, and even force a combination of case sensitive letters, numbers and punctuation, but that is beyond the scope of this article." It's this extra stuff that I'm looking to find code for. I could easily write it myself, but I figure someone else has already done this for me. I'm looking for a library or premade class that checks a password against a given dictionary, plus customizable numbers and punctuation rules.


          // TODO: Write code.

          1 Reply Last reply
          0
          • A Adam Wimsatt

            I've been asked to setup a webpage to use to change passwords. That's the easy part... the tricky part is that I have to run the password through a rule check. It can't be a dictionary word, has to be 8 characters, must have a number in it... etc etc. Anyone know of an easy way to do this? I'm just figuring that this has been done so many times before, there has got to be something already implemented that I can use. [Edit] I have googled, but I'm not sure what to google for... password rule doesn't get me anywhere [/Edit]


            // TODO: Write code.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            What about Regular Expressions?

            A 1 Reply Last reply
            0
            • V Vasudevan Deepak Kumar

              http://www.codeproject.com/tools/KeePass.asp[^] Vasudevan Deepak Kumar Personal Web: http://vdeepakkumar.netfirms.com/ I Blog At: http://deepak.blogdrive.com/

              A Offline
              A Offline
              Adam Wimsatt
              wrote on last edited by
              #6

              Another kewl link, but I couldn't find anything about checking a given password against a dictionary in that article.


              // TODO: Write code.

              1 Reply Last reply
              0
              • L Lost User

                What about Regular Expressions?

                A Offline
                A Offline
                Adam Wimsatt
                wrote on last edited by
                #7

                That would of course be a good way of doing it... know of some code that already has that implemented? I'm just trying to avoid writting code that someone else has already put together. [Edit] Thanks for mentioning Reg Exp btw... That led me to this[^]. Now I just need some code to check the password against a dictionary. [/Edit]


                // TODO: Write code.

                D 1 Reply Last reply
                0
                • A Adam Wimsatt

                  That would of course be a good way of doing it... know of some code that already has that implemented? I'm just trying to avoid writting code that someone else has already put together. [Edit] Thanks for mentioning Reg Exp btw... That led me to this[^]. Now I just need some code to check the password against a dictionary. [/Edit]


                  // TODO: Write code.

                  D Offline
                  D Offline
                  Dan Neely
                  wrote on last edited by
                  #8

                  No code, but the basic idea should be fairly simple. Load the dictionary into a hash table, and test to see if the proposed passwords in it.

                  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