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. Web Development
  3. ASP.NET
  4. How to Authenticate Password Using MD5 Hash code

How to Authenticate Password Using MD5 Hash code

Scheduled Pinned Locked Moved ASP.NET
securitycryptographytutorial
7 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.
  • R Offline
    R Offline
    rockz
    wrote on last edited by
    #1

    I have to pass user name and password for the LDAP authentication but during this process password is getting saved into the local machine RAM and which can be retrived later... So how I can use MD5 hash code for preventing this.

    C P 2 Replies Last reply
    0
    • R rockz

      I have to pass user name and password for the LDAP authentication but during this process password is getting saved into the local machine RAM and which can be retrived later... So how I can use MD5 hash code for preventing this.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      How do other programs access your RAM ? The way an MD5 hash works is destructive, if you have an MD5, you cannot use it to get your original password back. They are used sometimes to store passwords, so the password sent is an MD5 hash of what is typed, and the MD5 hash is what is stored. The main idea here is that the actual password is not in the DB and in theory, people are not likely to work it out from the MD5. MD5 is not all that secure, nowadays.

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      P 1 Reply Last reply
      0
      • R rockz

        I have to pass user name and password for the LDAP authentication but during this process password is getting saved into the local machine RAM and which can be retrived later... So how I can use MD5 hash code for preventing this.

        P Offline
        P Offline
        Paddy Boyd
        wrote on last edited by
        #3

        Who's on your server accessing the RAM?

        M 1 Reply Last reply
        0
        • P Paddy Boyd

          Who's on your server accessing the RAM?

          M Offline
          M Offline
          Mark Churchill
          wrote on last edited by
          #4

          Why does that question make me think pictures of cats inside computer cases? ;)

          Mark Churchill Director Dunn & Churchill Diamond Binding: Zero to Data Layer in 3 mins

          P 1 Reply Last reply
          0
          • M Mark Churchill

            Why does that question make me think pictures of cats inside computer cases? ;)

            Mark Churchill Director Dunn & Churchill Diamond Binding: Zero to Data Layer in 3 mins

            P Offline
            P Offline
            Paddy Boyd
            wrote on last edited by
            #5

            Too much lunchtime wine??

            M 1 Reply Last reply
            0
            • P Paddy Boyd

              Too much lunchtime wine??

              M Offline
              M Offline
              Mark Churchill
              wrote on last edited by
              #6

              That could be part of the reason ;) I was thinking something like so: http://digitalcollections.uwyo.edu/blogs/wp-content/uploads/2007/07/lolcat-in-computer3.JPG[^] "Im in your server, accessing your RAM".

              Mark Churchill Director Dunn & Churchill Diamond Binding: Zero to Data Layer in 3 mins

              1 Reply Last reply
              0
              • C Christian Graus

                How do other programs access your RAM ? The way an MD5 hash works is destructive, if you have an MD5, you cannot use it to get your original password back. They are used sometimes to store passwords, so the password sent is an MD5 hash of what is typed, and the MD5 hash is what is stored. The main idea here is that the actual password is not in the DB and in theory, people are not likely to work it out from the MD5. MD5 is not all that secure, nowadays.

                Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                P Offline
                P Offline
                Paul Conrad
                wrote on last edited by
                #7

                Christian Graus wrote:

                people are not likely to work it out from the MD5. MD5 is not all that secure, nowadays

                I agree, and I don't even bother treaching MD5 in my class. I stick to SHA-256 or better.

                "The clue train passed his station without stopping." - John Simmons / outlaw programmer

                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